Skip to content

feat(bootstrap): detect migrated GenAI instrumentations - #4880

Closed
tomatotomata wants to merge 1 commit into
open-telemetry:mainfrom
tomatotomata:codex/bootstrap-genai-detection
Closed

feat(bootstrap): detect migrated GenAI instrumentations#4880
tomatotomata wants to merge 1 commit into
open-telemetry:mainfrom
tomatotomata:codex/bootstrap-genai-detection

Conversation

@tomatotomata

@tomatotomata tomatotomata commented Jul 28, 2026

Copy link
Copy Markdown

Description

Updates opentelemetry-bootstrap --action=install to detect the GenAI libraries whose instrumentations now ship from opentelemetry-python-genai:

  • Anthropic
  • Google GenAI
  • LangChain
  • OpenAI
  • OpenAI Agents

The generated bootstrap catalog now uses the maintained opentelemetry-instrumentation-genai-* package names and no longer recommends the legacy opentelemetry-instrumentation-openai-v2 package. The generator keeps these external packages available after the legacy packages are removed from this repository.

Fixes #4816

Validation

  • PYTHONPATH=opentelemetry-instrumentation/src python -m pytest opentelemetry-instrumentation/tests/test_bootstrap.py -q ? 6 passed
  • Ruff check and format check pass for all changed files
  • git diff --check passes

Add migrated GenAI packages to bootstrap detection while removing the legacy OpenAI v2 package from generated results.\n\nAssisted-by: Codex
@tomatotomata
tomatotomata marked this pull request as ready for review July 28, 2026 15:43
@tomatotomata
tomatotomata requested a review from a team as a code owner July 28, 2026 15:43
@emdneto

emdneto commented Jul 29, 2026

Copy link
Copy Markdown
Member

Closing as spam.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Update bootstrap_gen to detect GenAI libraries with instrumentations

2 participants