Skip to content

Commit

Permalink
chore: Update ObservationHelper to allow sampling of spans (#37345)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhi-nair authored Nov 12, 2024
1 parent 91cf54b commit 8773bdd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Span createSpan(String name) {
return Span.NOOP;
} else {
TraceContext traceContext = tracer.traceContextBuilder()
.sampled(true)
.traceId(contextMap.get(TRACE_ID))
.spanId(contextMap.get(SPAN_ID))
.build();
Expand Down

0 comments on commit 8773bdd

Please sign in to comment.