Skip to content

Conversation

@singankit
Copy link
Contributor

Add support for OpenAI Responses API operation type in the gen_ai.operation.name attribute.

Fixes #

Changes

Please provide a brief description of the changes here.

Important

Pull requests acceptance are subject to the triage process as described in Issue and PR Triage Management.
PRs that do not follow the guidance above, may be automatically rejected and closed.

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Change log entry added, according to the guidelines in When to add a changelog entry.
    • If your PR does not need a change log, start the PR title with [chore]
  • Links to the prototypes or existing instrumentations (when adding or changing conventions)

Add support for OpenAI Responses API operation type in the gen_ai.operation.name attribute.
value: "execute_tool"
brief: 'Execute a tool'
stability: development
- id: responses
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it can be an operation name - there are several operations in responses API:

Image

I think a path forward might be an openai specific attribute that records an API type/version

Copy link
Contributor Author

@singankit singankit Jan 27, 2026

Choose a reason for hiding this comment

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

My opinion is that chat completion and responses have very similar operations. Reponses Migration guide also talks about the similarity of features between the two.

If chat-completion is available as an operation in Gen AI Sem Conv can responses be an operation too ?

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding this screenshot from slack # otel-genai-instrumentation channel for context.

image

Choose a reason for hiding this comment

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

I don't think responses should be added in this way. It's the name of one implementation/protocol of a "chat" API. Each provider has one or more. From my perspective, the operation should continue being chat, and if the name of the endpoint needs to be tracked, it can be done in a separate tag.

@singankit singankit requested a review from a team as a code owner January 27, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants