Strands Agents (tracing)
Strands Agents (tracing)
Strands Agents is an SDK for building model-driven agents with tools, sessions, and orchestration. Respan captures agent runs, reasoning loops, model calls, tool invocations, graph spans, and swarm spans.
This tracing setup uses your model provider credentials directly. To route model calls through Respan instead, use the Strands Agents gateway setup.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See Strands Agents gateway setup to route model calls through the Respan gateway.
Example projects
Setup
Set environment variables
OPENAI_API_KEY is used for direct provider calls. RESPAN_API_KEY exports traces to Respan.
View your trace
Open the Traces page to see Strands agent, model, tool, loop, graph, swarm, and node spans.
Configuration
Attributes
In Respan()
Set defaults at initialization. These apply to all spans.
With propagate_attributes
Override per-request attributes using a context scope.