Skip to content

Commit

Permalink
Fix build warnings about missing aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Reynolds committed May 3, 2022
1 parent c8bd431 commit 561c252
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/src/trace/samplers/trace_id_ratio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ SamplingResult TraceIdRatioBasedSampler::ShouldSample(
const trace_api::SpanContextKeyValueIterable & /*links*/) noexcept
{
if (threshold_ == 0)
return {Decision::DROP, nullptr};
return {Decision::DROP, nullptr, {}};

if (CalculateThresholdFromBuffer(trace_id) <= threshold_)
{
return {Decision::RECORD_AND_SAMPLE, nullptr};
return {Decision::RECORD_AND_SAMPLE, nullptr, {}};
}

return {Decision::DROP, nullptr};
return {Decision::DROP, nullptr, {}};
}

nostd::string_view TraceIdRatioBasedSampler::GetDescription() const noexcept
Expand Down

0 comments on commit 561c252

Please sign in to comment.