Skip to content

fix(sdk-node)!: remove buildSamplerFromConfig export#6784

Merged
trentm merged 2 commits into
open-telemetry:mainfrom
trentm:trentm-drop-sampler-export-from-sdk-node
Jun 4, 2026
Merged

fix(sdk-node)!: remove buildSamplerFromConfig export#6784
trentm merged 2 commits into
open-telemetry:mainfrom
trentm:trentm-drop-sampler-export-from-sdk-node

Conversation

@trentm

@trentm trentm commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This export was added in #6536
In early commits on that PR the functionality was added to the
sdk-trace-base package, where an export would be necessary for sdk-node
to use it for declarative config "create()".
However, buildSamplerFromConfig was ultimately placed in sdk-node,
which is the only expected place it will be used, at least currently.

I don't think we need to export "build an SDK element from declarative
Configuration properties" utilities yet. Not until there is an
expectation of their being used outside of sdk-node, and us wanting
to accept the extra maintenance surface area.

This export was added in open-telemetry#6536
In early commits on that PR the functionality was added to the
sdk-trace-base package, where an export would be necessary for sdk-node
to use it for declarative config "create()".
However, buildSamplerFromConfig was ultimately placed in sdk-node,
which is the only expected place it will be used, at least currently.

I don't think we need to export "build an SDK element from declarative
Configuration properties" utilities *yet*. Not until there is an
expectation of their being used outside of sdk-node, and us wanting
to accept the extra maintenance surface area.
@trentm trentm self-assigned this Jun 3, 2026
@trentm
trentm requested a review from a team as a code owner June 3, 2026 21:30
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.92%. Comparing base (8e4d4ed) to head (e4fae0b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6784   +/-   ##
=======================================
  Coverage   94.92%   94.92%           
=======================================
  Files         377      377           
  Lines       12818    12818           
  Branches     2924     2924           
=======================================
  Hits        12168    12168           
  Misses        650      650           
🚀 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.

@trentm
trentm added this pull request to the merge queue Jun 4, 2026
Merged via the queue into open-telemetry:main with commit 203503e Jun 4, 2026
31 checks passed
@trentm
trentm deleted the trentm-drop-sampler-export-from-sdk-node branch June 4, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants