SamplingIntent: {
    attributes?: Attributes;
    threshold: bigint;
    thresholdReliable: boolean;
    updateTraceState?: (ts: TraceState | undefined) => TraceState | undefined;
}

Information to make a sampling decision.

Type declaration

  • Optionalattributes?: Attributes

    Any attributes to add to the span for the sampling result.

  • threshold: bigint

    The sampling threshold value. A lower threshold increases the likelihood of sampling.

  • thresholdReliable: boolean

    Whether the threshold can be reliably used for Span-to-Metrics estimation.

  • OptionalupdateTraceState?: (ts: TraceState | undefined) => TraceState | undefined

    How to update the TraceState for the span.