Instrument your Project with Bedrock Instrumentor. This step ensures that all interactions with the Bedrock are tracked and monitored.
from traceai_bedrock import BedrockInstrumentorBedrockInstrumentor().instrument(tracer_provider=trace_provider)
import { BedrockInstrumentation } from "@traceai/bedrock";import { registerInstrumentations } from "@opentelemetry/instrumentation";const bedrockInstrumentation = new BedrockInstrumentation({});registerInstrumentations({ instrumentations: [bedrockInstrumentation], tracerProvider: tracerProvider,});
5. Create Bedrock Components
Set up your Bedrock client and use your application as you normally would. Our Instrumentor will automatically trace and send the telemetry data to our platform.