opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Make StandardComponentId constructor public

Open brunobat opened this issue 3 months ago • 3 comments

This prevents the instantiation of Senders outside of the SDK.

Related with https://github.com/open-telemetry/opentelemetry-java/issues/6718

brunobat avatar Oct 15 '25 16:10 brunobat

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 90.19%. Comparing base (056837a) to head (17c0adc).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #7763   +/-   ##
=========================================
  Coverage     90.18%   90.19%           
- Complexity     7196     7197    +1     
=========================================
  Files           814      814           
  Lines         21722    21722           
  Branches       2125     2125           
=========================================
+ Hits          19590    19592    +2     
+ Misses         1465     1464    -1     
+ Partials        667      666    -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Oct 15 '25 16:10 codecov[bot]

This prevents the instantiation of Senders outside of the SDK.

Why?

jack-berg avatar Oct 28 '25 19:10 jack-berg

It's more obvious that having to use the parent class to create its objects: ComponentId.generateLazy()

brunobat avatar Oct 29 '25 15:10 brunobat