Strands Agents is an open-source SDK from AWS that
makes it easy to build, deploy, and manage AI agents.This guide shows how to trace Strands Agents with Openlayer.
Configure the Strands telemetry in your application:
Copy
Ask AI
from strands.telemetry import StrandsTelemetrystrands_telemetry = StrandsTelemetry()strands_telemetry.setup_otlp_exporter() # Send traces to OTLP endpointstrands_telemetry.setup_meter(enable_otlp_exporter=True) # Setup meter provider
3
Use Agents as usual
Once instrumentation is set up, you can run your Agents as usual.
Trace data will be automatically captured and exported to Openlayer, where
you can begin testing and analyzing it.For example:
Copy
Ask AI
from strands import Agentagent = Agent( model="us.anthropic.claude-sonnet-4-5-20250929-v1:0", system_prompt="You are a helpful AI assistant")response = agent("What can you help me with?")