This module provides automatic instrumentation for the AWS SDK for JavaScript Bedrock Agent Runtime Client, which may be used in conjunction with @arizeai/phoenix-otel.
Install#
Setup#
To instrument your application, use the register function from @arizeai/phoenix-otel and manually instrument the Bedrock Agent Runtime SDK.
Create the instrumentation.ts file:
Run Bedrock Agents#
Import the instrumentation.ts file first, then use Bedrock Agent Runtime as usual.
Observe#
After setting up instrumentation and running your Bedrock Agent application, traces will appear in the Phoenix UI for visualization and analysis. This includes:
- Agent invocations
- Action group calls (as tools)
- Knowledge base lookups
- LLM calls within the agent

