Skip to content

Deprecate bedrock instrumentation - #5266

Open
DylanRussell wants to merge 6 commits into
open-telemetry:mainfrom
DylanRussell:deprecate_bedrock
Open

DylanRussell wants to merge 6 commits into
open-telemetry:mainfrom
DylanRussell:deprecate_bedrock

Conversation

@DylanRussell

Copy link
Copy Markdown
Contributor

Description

Deprecate the Amazon Bedrock extension in opentelemetry-instrumentation-botocore in favor of opentelemetry-instrumentation-genai-bedrock.

Key changes:

  • Emit a DeprecationWarning when _BedrockRuntimeExtension is initialized.
  • Check if opentelemetry-instrumentation-genai-bedrock is installed and active; if so, suppress the extension's handled operations in __init__ so botocore only emits standard AWS SDK RPC spans, avoiding duplicate GenAI spans, events, and metrics.
  • Update README.rst with deprecation notice pointing users to the new package.
  • Add unit tests for deprecation warning, active instrumentor detection, and end-to-end suppression.
  • Add changelog entry.
    Fixes Deprecate bedrock instrumentation package once new instrumentation in opentelemetry-python-genai is ready #4999

Type of change

  • This change requires a documentation update

Checklist:

  • I am a human and not a bot
  • I have run tox -e precommit
  • I have run tox -e typecheck
  • I have run the relevant tests and linting tox environments

@DylanRussell
DylanRussell requested a review from a team as a code owner October 29, 2026 19:24
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-11-04 14:40 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Deprecate bedrock instrumentation package once new instrumentation in opentelemetry-python-genai is ready

2 participants