Skip to content

openai-v2: import OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT from genai-utils#4455

Merged
xrmx merged 4 commits intoopen-telemetry:mainfrom
nagkumar91:use-genai-utils-openai-v2
Apr 20, 2026
Merged

openai-v2: import OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT from genai-utils#4455
xrmx merged 4 commits intoopen-telemetry:mainfrom
nagkumar91:use-genai-utils-openai-v2

Conversation

@nagkumar91
Copy link
Copy Markdown
Contributor

Summary

Remove the local re-definition of OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT in utils.py and import it from opentelemetry.util.genai.environment_variables instead, making opentelemetry-util-genai the single source of truth for this constant.

Changes

  • instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py: Replace local constant definition with import from opentelemetry.util.genai.environment_variables

Testing

Existing tests continue to pass.

…from genai-utils

Remove local re-definition of OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT
and import it from opentelemetry.util.genai.environment_variables instead,
making genai-utils the single source of truth for this constant.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this to Approved PRs in Python PR digest Apr 16, 2026
Comment thread instrumentation-genai/opentelemetry-instrumentation-openai-v2/CHANGELOG.md Outdated
@xrmx xrmx enabled auto-merge (squash) April 20, 2026 14:14
@xrmx xrmx merged commit a326c27 into open-telemetry:main Apr 20, 2026
751 checks passed
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in Python PR digest Apr 20, 2026
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.

3 participants