shouldSample method
SamplingResult
shouldSample(
- Context context,
- TraceId traceId,
- String? spanName,
- SpanKind? spanKind,
- List<
Attribute> spanAttributes, - List<
SpanLink> ? links,
override
Implementation
@override
sdk.SamplingResult shouldSample(
api.Context context,
api.TraceId traceId,
String? spanName,
api.SpanKind? spanKind,
List<api.Attribute> spanAttributes,
List<api.SpanLink>? links) {
return sdk.SamplingResult(sdk.Decision.drop, spanAttributes,
context.spanContext?.traceState ?? sdk.TraceState.empty());
}