Update OpenTelemetry Gen AI semantic conventions to v1.40#7322
Merged
stephentoub merged 3 commits intomainfrom Feb 19, 2026
Merged
Update OpenTelemetry Gen AI semantic conventions to v1.40#7322stephentoub merged 3 commits intomainfrom
stephentoub merged 3 commits intomainfrom
Conversation
…o v1.40 Co-authored-by: stephentoub <[email protected]>
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
stephentoub
reviewed
Feb 19, 2026
stephentoub
approved these changes
Feb 19, 2026
Contributor
There was a problem hiding this comment.
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 |
tarekgh
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates all Gen AI OpenTelemetry instrumentation to reference semantic conventions v1.40 (from v1.39).
Version references
OpenTelemetryChatClient,OpenTelemetryImageGenerator,OpenTelemetryEmbeddingGenerator,OpenTelemetrySpeechToTextClientNew constant
gen_ai.usage.cache_creation.input_tokenstoOpenTelemetryConsts.cs(not emitted—cache write tokens are optional per spec)v1.40 gen-ai additions audit
retrievaloperation name (#2907)gen_ai.agent.version(#3428)gen_ai.usage.cache_creation.input_tokens(#1959)gen_ai.usage.cache_read.input_tokens(#1959)openai.api.type(#3337)sampling-relevantflag (#2994)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/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