UNPKG

@aws/aws-distro-opentelemetry-node-autoinstrumentation

Version:

This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.

10 lines 535 B
import { Attributes, Context, Link, SpanKind } from '@opentelemetry/api'; import { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base'; export declare class FallbackSampler implements Sampler { private fixedRateSampler; private rateLimitingSampler; constructor(ratio?: number, quota?: number); shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: Attributes, links: Link[]): SamplingResult; toString(): string; } //# sourceMappingURL=fallback-sampler.d.ts.map