chore: Update ObservationHelper to allow sampling of spans (#37345)

This commit is contained in:
Nidhi 2024-11-12 19:43:43 +05:30 committed by GitHub
parent 91cf54ba47
commit 8773bdd1e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,7 @@ public class ObservationHelperImpl implements ObservationHelper {
return Span.NOOP;
} else {
TraceContext traceContext = tracer.traceContextBuilder()
.sampled(true)
.traceId(contextMap.get(TRACE_ID))
.spanId(contextMap.get(SPAN_ID))
.build();