Strands Agent SDK
The Strands Agent SDK integration provides automatic tracing and logging of agent executions to Braintrust using OpenTelemetry. It captures agent invocations, tool calls, and multi-step interactions.
The code below adapts the Weather Forecaster Strands example to send traces and logs to Braintrust.
First, install the necessary dependencies and set environment variables.
uv add braintrust[otel] strands-agents-tools strands-agents[openai]
Use BraintrustSpanProcessor
to configure Strands agent traces to send to Braintrust. This example adapts the Weather Forecaster Strands example to send traces and logs to Braintrust.