Skip to content

Migrate the semantic conventions of OpenAI instrumentation to 1.37.0. #15174

Open

Description

@Cirilla-zmh

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.

cc @anuraaga

Describe alternatives you've considered

No response

Additional context

No response

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.

Activity

  1. anuraaga commented on Oct 29, 2025

    @anuraaga
    Contributor

    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.

  2. vasantteja commented on Nov 10, 2025

    @vasantteja
    Contributor

    @Cirilla-zmh let me know once you're done with your changes. I will make my changes based on your changes.

  3. Cirilla-zmh commented on Nov 11, 2025

    @Cirilla-zmh
    MemberAuthor

    let me know once you're done with your changes. I will make my changes based on your changes.

    @vasantteja Sure, I will send a PR soon.

  4. 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
  5. 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
  6. Cirilla-zmh commented on Dec 10, 2025

    @Cirilla-zmh
    MemberAuthor

    @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?

  7. trask commented on Dec 10, 2025

    @trask
    Member

    is JSON serialization just temporary until complex attributes lands (after the 6 month moratorium ends, post Jan-15)?

  8. Cirilla-zmh commented on Dec 11, 2025

    @Cirilla-zmh
    MemberAuthor

    is JSON serialization just temporary until complex attributes lands (after the 6 month moratorium ends, post Jan-15)?

    From Java APAC SIG:

    Let's just add this serializer in specific instrumentation module this time.

  9. Cirilla-zmh commented on Dec 11, 2025

    @Cirilla-zmh
    MemberAuthor

    is JSON serialization just temporary until complex attributes lands (after the 6 month moratorium ends, post Jan-15)?

    From Java APAC SIG:

    Let's just add this serializer in specific instrumentation module this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions