fix(exporter-prometheus): add missing semantic-conventions dependency#6330
Merged
pichlermarc merged 2 commits intoopen-telemetry:mainfrom Jan 27, 2026
Merged
fix(exporter-prometheus): add missing semantic-conventions dependency#6330pichlermarc merged 2 commits intoopen-telemetry:mainfrom
pichlermarc merged 2 commits intoopen-telemetry:mainfrom
Conversation
… package.json and package-lock.json
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6330 +/- ##
=======================================
Coverage 95.58% 95.59%
=======================================
Files 314 314
Lines 9590 9596 +6
Branches 2221 2221
=======================================
+ Hits 9167 9173 +6
Misses 423 423 🚀 New features to boost your workflow:
|
…tions` dependency to CHANGELOG
pichlermarc
approved these changes
Jan 27, 2026
Contributor
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.
Which problem is this PR solving?
The
withoutScopeInfofeature added in #5993 importsATTR_OTEL_SCOPE_NAMEandATTR_OTEL_SCOPE_VERSIONfrom@opentelemetry/semantic-conventionsat runtime, but the package was only listed indevDependencies.This causes module resolution errors when using the exporter in projects with strict dependency resolution (e.g.,
Yarn PnP):
Error: @opentelemetry/exporter-prometheus tried to access @opentelemetry/semantic-conventions,
but it isn't declared in its dependencies
Short description of the changes
Move
@opentelemetry/semantic-conventionsfromdevDependenciestodependenciesinexperimental/packages/opentelemetry-exporter-prometheus/package.json.Type of change
How Has This Been Tested?
npm run test -w @opentelemetry/exporter-prometheus
62 passing (68ms)
Checklist: