Skip to main content
This module provides automatic instrumentation for AWS Bedrock Runtime which may be used in conjunction with OpenTelemetry.

Installation

Install the instrumentation package:

Usage

To load the Bedrock instrumentation, specify it in the registerInstrumentations call along with any additional instrumentation you wish to enable.

TypeScript Example with Custom Tracer Provider

You can specify a custom tracer provider when creating the Bedrock instrumentation. This is useful when you want to use a non-global tracer provider or have more control over the tracing configuration.
Alternatively, you can set the tracer provider after creating the instrumentation:

Compatibility

@arizeai/openinference-instrumentation-bedrock is compatible with the following versions of the @aws-sdk/client-bedrock-runtime package:

Resources