Skip to content

opentelemetry-bootstrap: detect migrated GenAI instrumentations - #4927

Draft
luisangelrod wants to merge 2 commits into
open-telemetry:mainfrom
luisangelrod:fix/genai-bootstrap-detection
Draft

opentelemetry-bootstrap: detect migrated GenAI instrumentations#4927
luisangelrod wants to merge 2 commits into
open-telemetry:mainfrom
luisangelrod:fix/genai-bootstrap-detection

Conversation

@luisangelrod

Copy link
Copy Markdown

Description

Updates opentelemetry-bootstrap to detect Anthropic, Google GenAI, LangChain, OpenAI, and OpenAI Agents libraries and recommend their current instrumentation packages from opentelemetry-python-genai. It also stops recommending the deprecated OpenAI v2 packages.

Fixes #4816

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Python 3.13 opentelemetry-instrumentation test suite: 225 passed, 2 skipped
  • Focused bootstrap tests: 7 passed
  • Ruff lint and format hooks

Does This PR Require a Core Repo Change?

  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 5, 2026

Copy link
Copy Markdown

CLA Not Signed

@luisangelrod
luisangelrod force-pushed the fix/genai-bootstrap-detection branch from 79128c0 to aec4b5f Compare August 5, 2026 15:39
},
{
"library": "google-genai >= 1.32.0, <3",
"instrumentation": "opentelemetry-instrumentation-google-genai",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .changelog/4927.added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update bootstrap_gen to detect GenAI libraries with instrumentations

2 participants