Skip to content

OpenAI v2 onboard onto semantic conventions 1.37.0: chat history and other breaking changes#3715

Merged
xrmx merged 19 commits intoopen-telemetry:mainfrom
lmolkova:openai-v2-input-output-attrs
Mar 3, 2026
Merged

OpenAI v2 onboard onto semantic conventions 1.37.0: chat history and other breaking changes#3715
xrmx merged 19 commits intoopen-telemetry:mainfrom
lmolkova:openai-v2-input-output-attrs

Conversation

@lmolkova
Copy link
Copy Markdown
Member

@lmolkova lmolkova commented Aug 27, 2025

Implements new semconv 1.37.0 behind OTEL_SEMCONV_STABILITY_OPT_IN = gen_ai_latest_experimental opt-in.

TODOs:

@lmolkova lmolkova changed the title OpenAI v2 onboard onto new semantic conventions: chat history and other breaking changes OpenAI v2 onboard onto semantic conventions 1.37.0: chat history and other breaking changes Aug 27, 2025
@xrmx
Copy link
Copy Markdown
Contributor

xrmx commented Aug 27, 2025

As a common package we have https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/util/opentelemetry-util-genai

@lmolkova
Copy link
Copy Markdown
Member Author

thanks a lot, @xrmx!

Copy link
Copy Markdown

@zhirafovod zhirafovod left a comment

Choose a reason for hiding this comment

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

Some minor suggestions, but overall it looks good for this iteration. Thanks for doing it, we can add some notes to follow up on these items in the following pr.

@zhirafovod
Copy link
Copy Markdown

As a common package we have https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/util/opentelemetry-util-genai

@xrmx , I would propose we merge this one before the common library is ready. It will provide testing needed to switch to the new library.

Also, please review the PRs which are pre-requirement to switching to the util library.
#3862
#3891

@lmolkova lmolkova force-pushed the openai-v2-input-output-attrs branch from 4d9ba77 to 4887a19 Compare December 30, 2025 04:48
@lmolkova lmolkova force-pushed the openai-v2-input-output-attrs branch from 3f0e18a to 50f4210 Compare February 9, 2026 20:25
@lmolkova lmolkova marked this pull request as ready for review February 9, 2026 20:31
@lmolkova lmolkova requested a review from a team as a code owner February 9, 2026 20:31
Copy link
Copy Markdown
Contributor

@vasantteja vasantteja left a comment

Choose a reason for hiding this comment

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

@lmolkova Overall LGTM!! I left few questions behind so that we can consolidate stuff to further streamline and simplify the codebase. Lmk your thoughts.

@tammy-baylis-swi tammy-baylis-swi moved this from Ready for review to Reviewed PRs that need fixes in Python PR digest Feb 26, 2026
Copy link
Copy Markdown
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

Thanks!

@xrmx xrmx moved this from Reviewed PRs that need fixes to Approved PRs in Python PR digest Mar 2, 2026
@xrmx xrmx enabled auto-merge (squash) March 3, 2026 08:36
@xrmx xrmx merged commit 26ae9ca into open-telemetry:main Mar 3, 2026
771 checks passed
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in Python PR digest Mar 3, 2026
shuningc pushed a commit to shuningc/opentelemetry-python-contrib that referenced this pull request Mar 5, 2026
…other breaking changes (open-telemetry#3715)

* Support latest experimental conventions in openai

* format

* changelog

* lint

* lint

* update to use new test utils, fix tests

* lint

* review

* address feedback

* review

* feedback: more readable
sightseeker added a commit to sightseeker/opentelemetry-python-contrib that referenced this pull request Mar 11, 2026
…other breaking changes (open-telemetry#3715)

* Support latest experimental conventions in openai

* format

* changelog

* lint

* lint

* update to use new test utils, fix tests

* lint

* review

* address feedback

* review

* feedback: more readable
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.