Skip to content
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: make scopemanager optional param #257

Merged
merged 4 commits into from
Sep 16, 2019

Conversation

mayurkale22
Copy link
Member

Which problem is this PR solving?

  • Originates from API/SDK usage based on current implementation #194

  • This is as per today's (09/11) SIG discussion. Let me know if you still disagree with this.

  • BasicTracer is configured with NoopScopeManager as a default value.

  • NodeTracer is configured with AsyncHooksScopeManager as a default value.

@mayurkale22
Copy link
Member Author

/cc @draffensperger Please review, I can't add as a code reviewer.

@codecov-io
Copy link

codecov-io commented Sep 11, 2019

Codecov Report

Merging #257 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #257      +/-   ##
==========================================
- Coverage   98.94%   98.94%   -0.01%     
==========================================
  Files          66       66              
  Lines        2652     2648       -4     
  Branches      173      170       -3     
==========================================
- Hits         2624     2620       -4     
  Misses         28       28
Impacted Files Coverage Δ
...kages/opentelemetry-basic-tracer/test/Span.test.ts 100% <ø> (ø) ⬆️
...ages/opentelemetry-basic-tracer/src/BasicTracer.ts 98.5% <100%> (+0.02%) ⬆️
...sic-tracer/test/export/SimpleSpanProcessor.test.ts 100% <100%> (ø) ⬆️
...pentelemetry-basic-tracer/test/BasicTracer.test.ts 100% <100%> (ø) ⬆️
packages/opentelemetry-basic-tracer/src/utility.ts 100% <100%> (ø) ⬆️
...ic-tracer/test/export/InMemorySpanExporter.test.ts 100% <100%> (ø) ⬆️
packages/opentelemetry-basic-tracer/src/config.ts 100% <100%> (ø) ⬆️
...ckages/opentelemetry-node-tracer/src/NodeTracer.ts 100% <100%> (ø) ⬆️
...metry-basic-tracer/test/MultiSpanProcessor.test.ts 100% <100%> (ø) ⬆️
... and 1 more

Copy link
Member

@markwolff markwolff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -35,6 +35,7 @@ import { mergeConfig } from './utility';
import { SpanProcessor } from './SpanProcessor';
import { NoopSpanProcessor } from './NoopSpanProcessor';
import { MultiSpanProcessor } from './MultiSpanProcessor';
import { defaultConfig } from './config';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since defaultConfig is a shared immutable constant, should it be DEFAULT_CONFIG in all caps?

Copy link
Member

@OlivierAlbertini OlivierAlbertini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mayurkale22
Copy link
Member Author

Ping, for more reviews.

@mayurkale22 mayurkale22 merged commit 6fca212 into open-telemetry:master Sep 16, 2019
@mayurkale22 mayurkale22 deleted the optional_scopemanager branch September 16, 2019 21:44
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants