Add HoneyHive observability to your AWS Bedrock applications
AWS Bedrock provides access to foundation models from Anthropic, Meta, Mistral, Amazon, and more. HoneyHive integrates with Bedrock via the OpenInference instrumentor, automatically capturing all model invocations and Converse API calls.
Add HoneyHive tracing in just 4 lines of code. Add this to your existing Bedrock app and all model invocations, Converse API calls, and streaming are automatically traced.
To see where to initialize the tracer for your environment, including AWS Lambda and long-running servers, see Tracer Initialization.
pip install "honeyhive[openinference-bedrock]>=1.0.0rc0"# Or install separatelypip install "honeyhive>=1.0.0rc0" openinference-instrumentation-bedrock boto3
import osfrom honeyhive import HoneyHiveTracerfrom openinference.instrumentation.bedrock import BedrockInstrumentortracer = HoneyHiveTracer.init( api_key=os.getenv("HH_API_KEY"), project=os.getenv("HH_PROJECT"),)BedrockInstrumentor().instrument(tracer_provider=tracer.provider)# Your existing Bedrock code works unchanged