huggingface / huggingface/smolagents
Opentelemetry instrumentation splits transactions into steps when streaming=True in codeAgent
- Dominant language
- Python
- Stars
- 29.3k
- Forks
- 3k
- Avg merge
- 17m
- Merged PRs (30d)
- 2
Description
My app writes instrumentations via Opentelemtry-sdk==1.29.0, opentelemtry-exporter-otlp==1.29.0 and openinference-instrumentation-smolagents==0.1.4
My smolagents version is 1.9.2
my_agent = CodeAgent(model=my_model, tools=my_tools_list)
my_agent.run("say hello", stream=True) causes each span to be its own step instead of all step being gathered under the same trace
Thank you for your help
Contributor guide
Research direction
Reproduce the issue with smolagents 1.9.2, OpenTelemetry SDK and OTLP exporter 1.29.0, and openinference-instrumentation-smolagents 0.1.4 using CodeAgent.run(..., stream=True). Inspect how streaming spans are created and grouped during the run. Done means the streamed steps are gathered under one trace rather than emitted as separate transactions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100