Skip to content

Update OpenTelemetry Gen AI semantic conventions to v1.40#7322

Merged
stephentoub merged 3 commits intomainfrom
copilot/update-semantic-conventions-version
Feb 19, 2026
Merged

Update OpenTelemetry Gen AI semantic conventions to v1.40#7322
stephentoub merged 3 commits intomainfrom
copilot/update-semantic-conventions-version

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Updates all Gen AI OpenTelemetry instrumentation to reference semantic conventions v1.40 (from v1.39).

Version references

  • Updated doc comments in OpenTelemetryChatClient, OpenTelemetryImageGenerator, OpenTelemetryEmbeddingGenerator, OpenTelemetrySpeechToTextClient

New constant

  • Added gen_ai.usage.cache_creation.input_tokens to OpenTelemetryConsts.cs (not emitted—cache write tokens are optional per spec)

v1.40 gen-ai additions audit

Change Status
retrieval operation name (#2907) N/A — no retrieval client exists
Enhanced server-side tool calls (#2585) Already implemented
gen_ai.agent.version (#3428) N/A — no agent instrumentation needs it
gen_ai.usage.cache_creation.input_tokens (#1959) Constant added; emission intentionally skipped (optional)
gen_ai.usage.cache_read.input_tokens (#1959) Already implemented
openai.api.type (#3337) Already implemented
sampling-relevant flag (#2994) Spec metadata only

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • opentelemetry.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Microsoft Reviewers: Open in CodeFlow

Copilot AI changed the title [WIP] Update Gen Ai to semantic conventions v1.40 Update OpenTelemetry Gen AI semantic conventions to v1.40 Feb 19, 2026
Copilot AI requested a review from stephentoub February 19, 2026 20:23
@stephentoub stephentoub marked this pull request as ready for review February 19, 2026 20:34
@stephentoub stephentoub requested a review from a team as a code owner February 19, 2026 20:34
@stephentoub stephentoub enabled auto-merge (squash) February 19, 2026 20:35
Copy link
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

This pull request updates the OpenTelemetry Gen AI semantic conventions version from v1.39 to v1.40 across all AI instrumentation components in the Microsoft.Extensions.AI library. The changes are purely documentation updates to ensure the implementation references match the current semantic convention specification version.

Changes:

  • Updated version references in XML documentation comments from v1.39 to v1.40 across four OpenTelemetry instrumentation classes
  • Updated CHANGELOG.md to reflect conformance to v1.40 specification

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
OpenTelemetryChatClient.cs Updated semantic conventions version reference from v1.39 to v1.40 in class documentation
OpenTelemetryImageGenerator.cs Updated semantic conventions version reference from v1.39 to v1.40 in class documentation
OpenTelemetryEmbeddingGenerator.cs Updated semantic conventions version reference from v1.39 to v1.40 in class documentation
OpenTelemetrySpeechToTextClient.cs Updated semantic conventions version reference from v1.39 to v1.40 in class documentation
CHANGELOG.md Updated specification version reference from 1.39 to 1.40 in the unreleased changes section

@stephentoub stephentoub merged commit 8694dff into main Feb 19, 2026
11 checks passed
@stephentoub stephentoub deleted the copilot/update-semantic-conventions-version branch February 19, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants