open-telemetry / open-telemetry/opentelemetry-python-genai

Update OpenAI instrumentation to latest sem conv + use genai utils as much as possible

Open
#107 0 comments 1 reaction 1 assignee View on GitHub

@lzchen is already working on this.

Since Jun 2, 2026.

enhancement
Dominant language
Python
Stars
39
Forks
63
Avg merge
1d 15h
Merged PRs (30d)
175

Description

What problem do you want to solve?

OpenAI instrumentation carries mixed semantic-convention behavior, with legacy and latest GenAI semconv paths coexisting. The goal is to fully migrate to latest GenAI semconv behavior and remove legacy semconv logic.

Describe the solution you'd like

PR Plan

PR1: Remove legacy chat completion paths only, leaving embeddings and responses behavior unchanged. - https://github.com/open-telemetry/opentelemetry-python-genai/pull/108
PR2: Migrate embeddings instrumentation to util-genai lifecycle and drop embeddings-specific legacy routing/plumbing.
PR3: Clean up responses instrumentation wrappers/flow for latest-semconv consistency while keeping non-responses paths untouched. - https://github.com/open-telemetry/opentelemetry-python-genai/pull/92
PR4: Rebaseline tests and docs/examples for the final support model, then run conformance and final validation.

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement it?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.