Interface SamplingRule

Sampling rule to configure on the priority sampler.

interface SamplingRule {
    name?: string | RegExp;
    sampleRate: number;
    service?: string | RegExp;
}

Properties

name?: string | RegExp

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

sampleRate: number

Sampling rate for this rule.

service?: string | RegExp

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