shouldSample method
SamplingResult
shouldSample(
- Context context,
- TraceId traceId,
- String spanName,
- SpanKind spanKind,
- List<
Attribute> spanAttributes, - List<
SpanLink> spanLinks,
override
Implementation
@override
sdk.SamplingResult shouldSample(
api.Context context,
api.TraceId traceId,
String spanName,
api.SpanKind spanKind,
List<api.Attribute> spanAttributes,
List<api.SpanLink> spanLinks) {
return sdk.SamplingResult(sdk.Decision.recordAndSample, spanAttributes,
api.spanContextFromContext(context).traceState);
}