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 links to sampler API #391

Merged
merged 3 commits into from
Nov 16, 2020
Merged

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Nov 16, 2020

This fixes #366

@lalitb lalitb requested a review from a team November 16, 2020 11:27
@codecov
Copy link

codecov bot commented Nov 16, 2020

Codecov Report

Merging #391 (7a64e53) into master (2bab26e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #391   +/-   ##
=======================================
  Coverage   95.00%   95.01%           
=======================================
  Files         164      164           
  Lines        7086     7099   +13     
=======================================
+ Hits         6732     6745   +13     
  Misses        354      354           
Impacted Files Coverage Δ
sdk/include/opentelemetry/sdk/trace/sampler.h 100.00% <ø> (ø)
...lude/opentelemetry/sdk/trace/samplers/always_off.h 100.00% <ø> (ø)
...clude/opentelemetry/sdk/trace/samplers/always_on.h 100.00% <ø> (ø)
.../include/opentelemetry/sdk/trace/samplers/parent.h 100.00% <ø> (ø)
.../opentelemetry/sdk/trace/samplers/trace_id_ratio.h 100.00% <ø> (ø)
sdk/src/trace/samplers/trace_id_ratio.cc 100.00% <ø> (ø)
sdk/test/trace/tracer_test.cc 100.00% <ø> (ø)
sdk/src/trace/samplers/parent.cc 100.00% <100.00%> (ø)
sdk/src/trace/tracer.cc 73.52% <100.00%> (ø)
sdk/test/trace/always_off_sampler_test.cc 100.00% <100.00%> (ø)
... and 3 more

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.

Looks good!

@@ -70,7 +71,8 @@ class Sampler
trace_api::TraceId trace_id,
nostd::string_view name,
trace_api::SpanKind span_kind,
const opentelemetry::common::KeyValueIterable &attributes) noexcept = 0;
const opentelemetry::common::KeyValueIterable &attributes,
const trace_api::SpanContextKeyValueIterable &links) noexcept = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

The TODO on line 64 can be removed.

@reyang reyang merged commit fd8527b into open-telemetry:master Nov 16, 2020
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.

Passing links associated with span to Sampler
4 participants