Describe your environment
OS: MacOS
Python version: 3.12
Package version: 0.3.0.dev
What happened?
We always get 4 LLM span for one react iteration. Just see:
Steps to Reproduce
- Download source code of copaw: https://github.com/agentscope-ai/CoPaw
- Instrument copaw with
loongsuite-python-agent, just do:
a. clone loongsuite-python-agent
b. install instrumentation packages: pip install loongsuite-python-agent/loongsuite-distro & pip install loongsuite-python-agent/util/opentelemetry-util-genai & pip install loongsuite-python-agent/instrumentation-loongsuite/loongsuite-instrumentation-agentscope
c. do from opentelemetry.instrumentation.auto_instrumentation import sitecustomize before copaw is initialize
- Start CoPaw following README: https://github.com/agentscope-ai/CoPaw?tab=readme-ov-file#quick-start
- Ask CoPaw to complete a simple task with a tool, like "what's on my desktop".
Expected Result
Only one LLM span should be record for each react iteration.
Actual Result
You will gain a trace with duplicated LLM spans.
Additional context
No response
Would you like to implement a fix?
None
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Describe your environment
OS: MacOS
Python version: 3.12
Package version: 0.3.0.dev
What happened?
We always get 4 LLM span for one react iteration. Just see:
Steps to Reproduce
loongsuite-python-agent, just do:a. clone
loongsuite-python-agentb. install instrumentation packages:
pip install loongsuite-python-agent/loongsuite-distro & pip install loongsuite-python-agent/util/opentelemetry-util-genai & pip install loongsuite-python-agent/instrumentation-loongsuite/loongsuite-instrumentation-agentscopec. do
from opentelemetry.instrumentation.auto_instrumentation import sitecustomizebefore copaw is initializeExpected Result
Only one LLM span should be record for each react iteration.
Actual Result
You will gain a trace with duplicated LLM spans.
Additional context
No response
Would you like to implement a fix?
None
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.