-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrumentation splits transactions into steps when streaming=True in codeAgent #1322
Comments
Hey @bruriah1999! 👋 I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together! The behavior you're observing, where each span is treated as its own step instead of being grouped under a single trace when To address this, ensure that the If the issue persists, you might want to check the configuration of your OpenTelemetry setup to ensure that spans are being correctly linked to the same trace. This could involve verifying the context propagation settings or reviewing how spans are started and ended in your specific implementation. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
How can I make my smolagents instrument treat a step as MultiAgent.run child span and not as it's own span then? Is there a way to control it from the configuration? |
To make your Additionally, you can configure span grouping using context managers like Ensure that your configuration and implementation correctly utilize these methods and context managers to achieve the desired span hierarchy. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@dosu |
The You can pass a custom If the package doesn't currently support this configuration directly, you might need to modify the instrumentation logic to ensure that spans are nested correctly. This could involve adjusting how spans are started and ended, ensuring that child spans are created with the correct parent span context. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Hi @bruriah1999 thanks for reporting! We'll take a look very soon - the smolagents team did the initial contribution for this integration but we'll report back here when we know more. |
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
The text was updated successfully, but these errors were encountered: