fix(opentelemetry-sdk-node): add missing @opentelemetry/otlp-exporter-base dependency#6520
Merged
pichlermarc merged 3 commits intoopen-telemetry:mainfrom Mar 24, 2026
Conversation
…-base dependency The import of CompressionAlgorithm from @opentelemetry/otlp-exporter-base was added in open-telemetry#6407 but the dependency was not added to package.json. This causes a runtime error under strict package managers like pnpm that do not hoist transitive dependencies. Signed-off-by: Chris Lasher <chris.lasher@gmail.com>
0393b3b to
05c28f7
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6520 +/- ##
==========================================
- Coverage 95.75% 95.73% -0.02%
==========================================
Files 364 364
Lines 12096 12104 +8
Branches 2885 2887 +2
==========================================
+ Hits 11582 11588 +6
- Misses 514 516 +2 🚀 New features to boost your workflow:
|
…xporter-base dependency
…xporter-base dependency
pichlermarc
approved these changes
Mar 24, 2026
Contributor
Contributor
Author
|
Thank you, @pichlermarc! |
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?
@opentelemetry/sdk-nodeimportsCompressionAlgorithmfrom@opentelemetry/otlp-exporter-baseinsrc/utils.ts(added in #6407), but the dependency is not declared in the package'spackage.json. This causes a runtimeCannot find moduleerror under strict package managers like pnpm that do not hoist transitive dependencies.Fixes #6519
Short description of the changes
"@opentelemetry/otlp-exporter-base": "0.213.0"todependenciesinexperimental/packages/opentelemetry-sdk-node/package.jsonexperimental/CHANGELOG.mdType of change
How Has This Been Tested?
@opentelemetry/sdk-node@0.213.0fails to start under pnpm strict isolation without this fixpnpm.packageExtensions(our current workaround) resolves the errorgit blamethat the import was introduced in commit 2f7c372 (feat(opentelemetry-sdk-node): set log provider for experimental start #6407) without a correspondingpackage.jsonupdateChecklist: