Skip to content

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

@Cirilla-zmh

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.

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