Skip to main content

This module provides automatic instrumentation for the AWS SDK for JavaScript Bedrock 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 SDK.

Create the instrumentation.ts file:

Run Bedrock#

Import the instrumentation.ts file first, then use Bedrock as usual.

Observe#

After setting up instrumentation and running your Bedrock application, traces will appear in the Phoenix UI for visualization and analysis.

Resources#