Interface SpanSamplingRule

Span sampling rules to ingest single spans where the enclosing trace is dropped

interface SpanSamplingRule {
    maxPerSecond?: number;
    name?: string;
    sampleRate?: number;
    service?: string;
}

Properties

maxPerSecond?: number

Maximum number of spans matching a span sampling rule to be allowed per second.

name?: string

Operation name or pattern on which to apply this rule. The rule will apply to all operation names if not provided.

sampleRate?: number

Sampling rate for this rule. Will default to 1.0 (always) if not provided.

service?: string

Service name or pattern on which to apply this rule. The rule will apply to all services if not provided.