generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 617
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Checks
- I have updated to the lastest minor and patch version of Strands
- I have checked the documentation and this is not expected behavior
- I have searched ./issues and there are no duplicates of my issue
Strands Version
0.1.4
Python Version
3.13.1
Operating System
macOS 15.5
Installation Method
pip
Steps to Reproduce
- Install Strands using pip
- Run an agent call using stream_async, and configure the opentelemetry (to the console or a collector)
- Review the spans. The Cycle spans does not have a parent "Strands Agent" span
Expected Behavior
Create a "Strands Agent" Span
Actual Behavior
The parent span is not created
Additional Context
No response
Possible Solution
Initialize the self.tracer in the stream_async method of the Agent class, as it is initialized in the call method.
I'd add this peace of code to the stream_async method:
self.trace_span = self.tracer.start_agent_span( prompt=prompt, model_id=model_id, tools=self.tool_names, system_prompt=self.system_prompt, custom_trace_attributes=self.trace_attributes, )
Related Issues
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working