-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sdk-trace-*):! drop unintentional/unnecessary exports #5405
base: main
Are you sure you want to change the base?
feat(sdk-trace-*):! drop unintentional/unnecessary exports #5405
Conversation
@@ -316,37 +317,4 @@ describe('SimpleSpanProcessor', () => { | |||
assert.equal(exporterCreatedSpans.length, 0); | |||
}); | |||
}); | |||
|
|||
// TODO: https://github.com/open-telemetry/opentelemetry-js/pull/4238#issuecomment-1788516773 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewer note: this is not applicable since 2.x does not need to be compatible with 1.x packages.
@@ -84,7 +81,7 @@ export class BasicTracerProvider implements TracerProvider { | |||
name: string, | |||
version?: string, | |||
options?: { schemaUrl?: string } | |||
): Tracer { | |||
): ApiTracer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: if there's time, I'll also follow-up with renaming the now internal tracer to SdkTracer
to avoid having to do this and to have the code be more readable.
I've opted to not do this in this PR to keep the diff somewhat contained.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5405 +/- ##
=======================================
Coverage 94.64% 94.64%
=======================================
Files 318 318
Lines 8033 8033
Branches 1688 1688
=======================================
Hits 7603 7603
Misses 430 430
|
@@ -137,7 +138,9 @@ describe('BasicTracerProvider', () => { | |||
describe('generalLimits', () => { | |||
describe('when not defined default values', () => { | |||
it('should have tracer with default values', () => { | |||
const tracer = new BasicTracerProvider({}).getTracer('default'); | |||
const tracer = new BasicTracerProvider({}).getTracer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note for reviewers: there are quite a few of these as we assert on internals.
Which problem is this PR solving?
Drops unintentional exports from the
@opentelemetry/sdk-trace-base
package and dependents.This PR removes:
Tracer
- this was never intended to be used by end-users directly, should only be used asTracer
from@opentelemetry/api
EXPORTER_FACTORY
- unused since feat(sdk-trace)!: remove ability to have BasicTracerProvider instantiate exporters #5239PROPAGATOR_FACTORY
- unused since feat(sdk-trace-base)!: drop ability to auto-instantiate propagators beyond defaults #5355ForceFlushState
- this was never intended to be used by end-users directly and was only used internallyRefs #5290 (for removing
*_FACTORY
)Refs #5283 (for removing the export of the
Tracer
class)Type of change
How Has This Been Tested?