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

Passing parent context to SpanProcessor::OnStart() #552

Merged
merged 5 commits into from
Feb 3, 2021

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Feb 1, 2021

@lalitb lalitb requested a review from a team February 1, 2021 19:56
@lalitb lalitb added the area:sdk label Feb 1, 2021
@codecov
Copy link

codecov bot commented Feb 1, 2021

Codecov Report

Merging #552 (19389c6) into main (92f0533) will increase coverage by 0.02%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #552      +/-   ##
==========================================
+ Coverage   94.31%   94.33%   +0.02%     
==========================================
  Files         198      198              
  Lines        8806     8807       +1     
==========================================
+ Hits         8305     8308       +3     
+ Misses        501      499       -2     
Impacted Files Coverage Δ
...nclude/opentelemetry/ext/zpages/tracez_processor.h 100.00% <ø> (ø)
...ude/opentelemetry/sdk/trace/batch_span_processor.h 100.00% <ø> (ø)
sdk/include/opentelemetry/sdk/trace/processor.h 100.00% <ø> (ø)
sdk/src/trace/batch_span_processor.cc 92.77% <0.00%> (ø)
ext/src/zpages/tracez_processor.cc 95.23% <100.00%> (ø)
...include/opentelemetry/sdk/trace/simple_processor.h 88.88% <100.00%> (+0.65%) ⬆️
sdk/src/trace/span.cc 89.13% <100.00%> (ø)
sdk/test/trace/simple_processor_test.cc 86.20% <100.00%> (ø)
sdk/test/common/circular_buffer_test.cc 100.00% <0.00%> (+1.04%) ⬆️
sdk/src/logs/batch_log_processor.cc 95.06% <0.00%> (+1.23%) ⬆️

Copy link
Contributor

@pyohannes pyohannes left a comment

Choose a reason for hiding this comment

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

Thanks for getting us more closer to spec conformance.

Comment on lines 72 to 73
const opentelemetry::trace::SpanContext &parent_context =
opentelemetry::trace::SpanContext::GetInvalid()) noexcept override;
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for having a default value here? According to the spec this parameter is required, so I think we shouldn't make it easy to omit it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes right, it should be required parameter. I have modified the function prototype accordingly.

@lalitb lalitb merged commit 74ad7b1 into open-telemetry:main Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update SpanProcessor.onStart to accept parent Context
4 participants