wrapAnthropic wrapper, giving you visibility into session events and message flows.
Claude Managed Agents tracing is currently supported in TypeScript only.
In an agent-based workspace, create an agent once before sending traces. Use agent addressing to select its identifier and environment. If an integration requires
project_name, use the selected environment’s tracer_session_name as a compatibility value.Installation
npm
yarn
Environment setup
Shell
Trace Claude Managed Agents
Wrap the Anthropic client withwrapAnthropic. The wrapper traces all events that flow through the session.
TypeScript
Full tracing of subagents in Anthropic’s multi-agent architecture requires
tapping into a separate event stream and is not yet supported. Only top-level
session events are traced.
Next steps
- Trace Anthropic models: Trace standard Anthropic API calls and tool use
- Trace Claude Agent SDK agents: Trace agents running locally with the Claude Agent SDK
- Monitor your agent: Set up dashboards and alerts for production agents
Connect these docs to your agent of choice via MCP for real-time answers.

