Skip to content

Conversation

@lmolkova
Copy link
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
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
Member Author

thanks a lot, @xrmx!

Copy link

@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

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


def assert_log_parent(log, span):
"""Assert that the log record has the correct parent span context"""
Copy link
Member Author

Choose a reason for hiding this comment

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

oops

"opentelemetry-instrumentation ~= 0.58b0",
"opentelemetry-semantic-conventions ~= 0.58b0"
"opentelemetry-semantic-conventions ~= 0.58b0",
"opentelemetry-util-genai >= 0.2b0, <0.3b0",
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: 0.3b0.dev is required

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.

8 participants