-
Notifications
You must be signed in to change notification settings - Fork 24
Bug Report: Get duplicated LLM spans in AgentScope applications #151
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinggenaiThe genai label represents issues related to generative AI.The genai label represents issues related to generative AI.instrumentaionThe instrumentation label represents issues related to instrumentation.The instrumentation label represents issues related to instrumentation.
Description
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. cloneloongsuite-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. dofrom opentelemetry.instrumentation.auto_instrumentation import sitecustomizebefore 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggenaiThe genai label represents issues related to generative AI.The genai label represents issues related to generative AI.instrumentaionThe instrumentation label represents issues related to instrumentation.The instrumentation label represents issues related to instrumentation.