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.

56 lines 2.71 kB
import { EnvVarKey } from './types'; import { OpenTelemetryConfiguration } from './configuration/schema'; import { AlwaysOffSampler, AlwaysOnSampler, ParentBasedSampler, TraceIdRatioBasedSampler } from '@opentelemetry/sdk-trace-base'; import { Resource } from '@opentelemetry/resources'; export type SplunkConfiguration = { use_bundled_instrumentations?: boolean; package_name_filter?: string[]; runtime_metrics?: { collection_interval?: number; } | null; debug_metrics_enabled?: boolean; instrumentations?: any; profiling?: { exporter?: { otlp_log_http?: { endpoint?: string | null; }; }; always_on?: { cpu_profiler?: { sampling_interval?: number; collection_interval?: number; }; memory_profiler?: { max_stack_depth?: number; } | null; }; callgraphs?: { sampling_interval?: number; selection_probability?: number; } | null; }; }; export type DistroConfiguration = OpenTelemetryConfiguration & { distribution?: { splunk?: SplunkConfiguration; }; }; export type SplunkRuntimeMetricsConf = { collectionInterval?: number; }; export declare function loadConfiguration(path: string): DistroConfiguration; export declare function setGlobalConfiguration(config: DistroConfiguration): void; export declare function configGetResource(): Resource; export declare function getConfigResourceDetectors(): [] | [import("./configuration/schema").ExperimentalResourceDetector, ...import("./configuration/schema").ExperimentalResourceDetector[]] | undefined; export declare function configGetPropagators(): string[] | undefined; export declare function configGetUriParameterCapture(): string[]; export declare function configGetSampler(): TraceIdRatioBasedSampler | AlwaysOnSampler | AlwaysOffSampler | ParentBasedSampler | undefined; export declare function getConfigLogger(): import("./configuration/schema").LoggerProvider | undefined; export declare function getConfigTracerProvider(): import("./configuration/schema").TracerProvider | undefined; export declare function getConfigMeterProvider(): import("./configuration/schema").MeterProvider | undefined; export declare function getNonEmptyConfigVar(key: EnvVarKey): string | undefined; export declare function getConfigBoolean(key: EnvVarKey, defaultValue?: boolean): boolean; export declare function getConfigNumber(key: EnvVarKey | EnvVarKey[], defaultValue: number): number; export declare function getConfigArray(key: EnvVarKey): string[] | undefined; //# sourceMappingURL=configuration.d.ts.map