@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.
26 lines • 1.33 kB
TypeScript
import type { SpanExporter, SpanProcessor } from '@opentelemetry/sdk-trace-base';
import type { NodeTracerConfig } from '@opentelemetry/sdk-trace-node';
import type { Span, TextMapPropagator } from '@opentelemetry/api';
import type { Instrumentation } from '@opentelemetry/instrumentation';
import type { ResourceFactory } from '../types';
export type SpanExporterFactory = (options: TracingOptions) => SpanExporter | SpanExporter[];
export type SpanProcessorFactory = (options: TracingOptions) => SpanProcessor | SpanProcessor[];
export type PropagatorFactory = (options: TracingOptions) => TextMapPropagator;
export type CaptureHttpUriParameters = (span: Span, params: Record<string, string | string[] | undefined>) => void;
export interface TracingOptions {
accessToken: string;
realm?: string;
endpoint?: string;
serviceName: string;
captureHttpRequestUriParams: string[] | CaptureHttpUriParameters;
instrumentations: (Instrumentation | Instrumentation[])[];
propagatorFactory: PropagatorFactory;
serverTimingEnabled: boolean;
spanExporterFactory: SpanExporterFactory;
spanProcessorFactory: SpanProcessorFactory;
tracerConfig: NodeTracerConfig;
}
export type StartTracingOptions = Partial<TracingOptions> & {
resourceFactory?: ResourceFactory;
};
//# sourceMappingURL=types.d.ts.map