Home / Companies / OpenObserve / Blog / Post Details
Content Deep Dive

Instrumenting Amazon Bedrock, Bedrock Agents, and AgentCore with OpenTelemetry

Blog post from OpenObserve

Post Details
Company
Date Published
Author
Gorakhnath Yadav
Word Count
3,072
Company Posts That Month
9
Language
English
Hacker News Points
-
Summary

Amazon Bedrock can be instrumented with OpenTelemetry by applying gen_ai.* semantic conventions across three different access points: raw model calls via boto3, managed Bedrock Agents through the InvokeAgent API, and custom agents on Bedrock AgentCore. These conventions ensure uniform telemetry data collection, allowing for a consolidated dashboard that tracks spend and latency across all Bedrock interactions by directing outputs to an OTLP backend like OpenObserve. The unified telemetry approach replaces the deprecated gen_ai.system attribute with gen_ai.provider.name, focusing instead on model IDs for consistent data analysis. This setup supports cost tracking by converting token usage into dollar amounts using a custom price map, while maintaining privacy by excluding prompt content from telemetry unless explicitly opted in. OpenTelemetry's integration with OpenObserve facilitates comprehensive trace, metric, and log management, enabling users to monitor operational efficiencies and costs associated with Amazon Bedrock deployments effectively.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
OpenTelemetry 23 701 153 53 -26%
LLM 7 5,172 1,006 220 -43%
Observability 6 3,430 674 183 +0%
AI Agents 1 4,874 1,103 240 -1%