You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate the semantic conventions of OpenAI instrumentation to 1.37.0. #15174
Is your feature request related to a problem? Please describe.
The implementation of the OpenAI instrumentation is based on semconv version 1.36.0, which includes significant updates in version 1.37.0, such as redefining the schema of message events, introducing configuration options to control data-capturing behaviors, and adding more important attributes.
Describe the solution you'd like
I believe we need to refactor the OpenAI instrumentation to align with the latest semantic conventions for capturing chat messages. I have previously submitted a draft PR for this. If possible, I hope to resolve this issue, as it will also benefit the development of #14783 and #12878.
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.
Thanks @Cirilla-zmh - AFAIK this should still be alpha and we can change it any way. I'd recommend refactoring to the latest conventions without too much consideration following the general version policy. Let me know if I can help with it.
Reacted by Trask Stalnaker, Minghui Zhang and Teja
changed the title [-]Migrate the semantic conventions of OpenAI instrumentation to 1.37.0.[/-][+]Migrate the semantic conventions of OpenAI instrumentation to 1.38.0.[/+]on Nov 11, 2025
changed the title [-]Migrate the semantic conventions of OpenAI instrumentation to 1.38.0.[/-][+]Migrate the semantic conventions of OpenAI instrumentation to 1.37.0.[/+]on Nov 11, 2025
@trask@anuraaga I noticed that datadog has a practices for minimized implementation of JSON serializer, which is great for our scenario. So I send a draft PR: #15593 . WDYT about this?
Activity
anuraaga commentedon Oct 29, 2025
Thanks @Cirilla-zmh - AFAIK this should still be alpha and we can change it any way. I'd recommend refactoring to the latest conventions without too much consideration following the general version policy. Let me know if I can help with it.
vasantteja commentedon Nov 10, 2025
@Cirilla-zmh let me know once you're done with your changes. I will make my changes based on your changes.
Cirilla-zmh commentedon Nov 11, 2025
@vasantteja Sure, I will send a PR soon.
[-]Migrate the semantic conventions of OpenAI instrumentation to 1.37.0.[/-][+]Migrate the semantic conventions of OpenAI instrumentation to 1.38.0.[/+][-]Migrate the semantic conventions of OpenAI instrumentation to 1.38.0.[/-][+]Migrate the semantic conventions of OpenAI instrumentation to 1.37.0.[/+]Cirilla-zmh commentedon Dec 10, 2025
@trask @anuraaga I noticed that datadog has a practices for minimized implementation of JSON serializer, which is great for our scenario. So I send a draft PR: #15593 . WDYT about this?
trask commentedon Dec 10, 2025
is JSON serialization just temporary until complex attributes lands (after the 6 month moratorium ends, post Jan-15)?
Cirilla-zmh commentedon Dec 11, 2025
From Java APAC SIG:
Let's just add this serializer in specific instrumentation module this time.
Cirilla-zmh commentedon Dec 11, 2025
From Java APAC SIG:
Let's just add this serializer in specific instrumentation module this time.