UNPKG

@splunk/otel

Version:

The Splunk distribution of OpenTelemetry Node Instrumentation provides a Node agent that automatically instruments your Node application to capture and report distributed traces to Splunk APM.

13 lines 735 B
import { Context, TextMapPropagator, TextMapGetter, TextMapSetter } from '@opentelemetry/api'; import { TraceIdRatioBasedSampler } from '@opentelemetry/sdk-trace-base'; export declare const VOLUME_BAGGAGE_KEY: "splunk.trace.snapshot.volume"; export declare class SnapshotPropagator implements TextMapPropagator<unknown> { selectionRate: number; sampler: TraceIdRatioBasedSampler; constructor(selectionRate: number); inject(_context: Context, _carrier: unknown, _setter: TextMapSetter<unknown>): void; extract(context: Context, _carrier: unknown, _getter: TextMapGetter<unknown>): Context; fields(): string[]; attachVolumeBaggage(context: Context): Context; } //# sourceMappingURL=SnapshotPropagator.d.ts.map