Skip to content

Add model tagging to OpenAITelemetryPlugin for request and response#1642

Open
waldekmastykarz wants to merge 1 commit intodotnet:mainfrom
waldekmastykarz:llm-otel-model
Open

Add model tagging to OpenAITelemetryPlugin for request and response#1642
waldekmastykarz wants to merge 1 commit intodotnet:mainfrom
waldekmastykarz:llm-otel-model

Conversation

@waldekmastykarz
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 2, 2026 16:54
@waldekmastykarz waldekmastykarz requested a review from a team as a code owner May 2, 2026 16:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds OpenTelemetry GenAI semantic-convention tags for the OpenAI model on both the request span and (when available) the response processing path, improving trace/metric correlation in Dev Proxy’s OpenAI telemetry plugin.

Changes:

  • Tag request spans with gen_ai.request.model when the request specifies a model.
  • Tag activities with gen_ai.response.model when the response specifies a model.

@waldekmastykarz waldekmastykarz added the pr-bugfix Fixes a bug label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants