Learn how to instrument Strands Agents applications with LangWatch.
langwatch.setup()
initializes the LangWatch SDK and sets up OpenTelemetry tracing.
LiteLLMModel
for flexible provider support or specific model classes like BedrockModel
for AWS Bedrock.
Agent
constructor accepts trace_attributes
for consistent metadata across all traces.
@langwatch.trace()
decorators and langwatch.get_current_trace().update()
to add context-specific metadata.
.env
file:
strands-agents[otel]
package includes OpenTelemetry support out of the box.trace_attributes
parameter allows you to add consistent metadata to all traces from a specific agent instance.LANGWATCH_API_KEY
is set in the environment.