Skip to content

Conversation

pichlermarc
Copy link
Member

@pichlermarc pichlermarc commented Oct 6, 2025

Which problem is this PR solving?

A whole bunch of bundlers (at least vite, and rollup, likely many more) are failing to build when @opentelemetry/sdk-node is used. The reason for it is that we try to lazy-load @opentelemetry/exporter-jaeger if present, which we've marked as deprecated for a long time now. That exporter has been superseded by @opentelemetry/exporter-trace-otlp-http et al. since Jaeger now has native support for OTLP

This PR removes the lazy-loading in favor of the OTLP exporter, which remains fully supported.

Though deprecated, the Jaeger exporter will continue to be published from this repo until we mark @opentelemetry/exporter-trace-otlp-http as stable.

Fixes #4297

Copy link

codecov bot commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.18%. Comparing base (8e9b8bb) to head (9b84134).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5989   +/-   ##
=======================================
  Coverage   95.17%   95.18%           
=======================================
  Files         316      316           
  Lines        8521     8515    -6     
  Branches     1763     1763           
=======================================
- Hits         8110     8105    -5     
+ Misses        411      410    -1     
Files with missing lines Coverage Δ
...ental/packages/opentelemetry-sdk-node/src/utils.ts 91.66% <ø> (+0.43%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pichlermarc pichlermarc changed the title feat(sdk-node)!: drop dynamic loading of jaeger exporter feat(sdk-node)!: drop lazy-loading of jaeger exporter Oct 6, 2025
@pichlermarc pichlermarc marked this pull request as ready for review October 6, 2025 18:22
@pichlermarc pichlermarc requested a review from a team as a code owner October 6, 2025 18:22
@pichlermarc
Copy link
Member Author

I'll leave this open for a bit longer to give everyone some time to voice concerns, if any.
If there's no opposing comments I'll merge this in on Monday. 🙂

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.

[node-sdk] Missing @opentelemetry/exporter-jaeger raises an error on Next.js app
3 participants