Skip to main content
LangWatch integrates with Strands Agents to automatically capture traces of agent interactions, model calls, and tool executions through OpenTelemetry.

Installation

Usage

The LangWatch API key is configured by default via the LANGWATCH_API_KEY environment variable.
Initialize LangWatch and create your Strands Agent. All agent interactions will be automatically traced.
LangWatch automatically captures all agent interactions, model calls, and tool executions through Strands Agents’ built-in OpenTelemetry support. Use @langwatch.trace() decorators to add custom traces and metadata as needed.

Check it worked

Run the example. Then open your project in LangWatch: a new trace appears in the traces list within a few seconds. Open it to see the agent run, its model calls and its tool executions. If no trace appears, check that LANGWATCH_API_KEY is set in the environment the script runs in.
Last modified on October 29, 2026