Skip to content

Passing links to sampler API - #391

Merged
reyang merged 3 commits into
open-telemetry:masterfrom
lalitb:sampler-links
Nov 16, 2020
Merged

reyang merged 3 commits into
open-telemetry:masterfrom
lalitb:sampler-links

Conversation

@lalitb

@lalitb lalitb commented Nov 16, 2020

Copy link
Copy Markdown
Member

This fixes #366

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

codecov Bot commented Nov 16, 2020

Copy link
Copy Markdown

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

@pyohannes pyohannes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

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
Copy Markdown
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
GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Aug 31, 2025
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