import { SpanProcessor } from "@opentelemetry/sdk-trace-node"; import { SpanExporter } from "@opentelemetry/sdk-trace-base"; export declare const ALL_INSTRUMENTATION_LIBRARIES: "all"; type AllInstrumentationLibraries = typeof ALL_INSTRUMENTATION_LIBRARIES; export interface SpanProcessorOptions { /** * The API Key for sending traces data. Optional. * Defaults to the TRACELOOP_API_KEY environment variable. */ apiKey?: string; /** * The OTLP endpoint for sending traces data. Optional. * Defaults to TRACELOOP_BASE_URL environment variable or https://api.traceloop.com/ */ baseUrl?: string; /** * Sends traces and spans without batching, for local development. Optional. * Defaults to false. */ disableBatch?: boolean; /** * The OpenTelemetry SpanExporter to be used for sending traces data. Optional. * Defaults to the OTLP exporter. */ exporter?: SpanExporter; /** * The headers to be sent with the traces data. Optional. */ headers?: Record; /** * The instrumentation libraries to be allowed in the traces. Optional. * Defaults to Traceloop instrumentation libraries. * If set to ALL_INSTRUMENTATION_LIBRARIES, all instrumentation libraries will be allowed. * If set to an array of instrumentation libraries, only traceloop instrumentation libraries and the specified instrumentation libraries will be allowed. */ allowedInstrumentationLibraries?: string[] | AllInstrumentationLibraries; } /** * Creates a span processor with Traceloop's custom span handling logic. * This can be used independently of the full SDK initialization. * * @param options - Configuration options for the span processor * @returns A configured SpanProcessor instance */ export declare const createSpanProcessor: (options: SpanProcessorOptions) => SpanProcessor; export declare const traceloopInstrumentationLibraries: string[]; export {}; //# sourceMappingURL=span-processor.d.ts.map