[chore] Add depguard rule to prevent new semconv versions to be added#44606
Merged
Conversation
3a25c3c to
502d3ba
Compare
github-merge-queue Bot
pushed a commit
to open-telemetry/opentelemetry-collector
that referenced
this pull request
Nov 28, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Update semantic conventions to v1.37.0 Relates to open-telemetry/opentelemetry-collector-contrib/pull/44606
Co-authored-by: James Thompson <thompson.tomo@outlook.com>
codeboten
approved these changes
Nov 28, 2025
| - pkg: go.opentelemetry.io/otel/semconv | ||
| desc: Use go.opentelemetry.io/otel/semconv/v1.38.0 instead. If a newer semconv version has been released, update the depguard rule. | ||
| allow: | ||
| # TODO: Remove older semconv versions after v1.37.0 migration is complete. |
Contributor
There was a problem hiding this comment.
Suggested change
| # TODO: Remove older semconv versions after v1.37.0 migration is complete. | |
| # TODO: Remove older semconv versions after v1.38.0 migration is complete. |
Contributor
There was a problem hiding this comment.
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.
Description
Adds depguard rule that only allows the current semconv versions but excludes anything else.
Link to tracking issue
Updates #22095