import { ReadableSpan } from "./ReadableSpan.cjs"; import { Span as Span$1 } from "../Span.cjs"; import { SpanProcessor } from "../SpanProcessor.cjs"; import { SimpleSpanProcessorOptions } from "../types.cjs"; import { Context } from "@opentelemetry/api"; //#region src/export/SimpleSpanProcessor.d.ts /** * An implementation of the {@link SpanProcessor} that converts the {@link Span} * to {@link ReadableSpan} and passes it to the configured exporter. * * Only spans that are sampled are converted. * * NOTE: This {@link SpanProcessor} exports every ended span individually instead of batching spans together, which causes significant performance overhead with most exporters. For production use, please consider using the {@link BatchSpanProcessor} instead. */ declare class SimpleSpanProcessor implements SpanProcessor { private readonly _exporter; private readonly _metrics; private _shutdownOnce; private _pendingExports; constructor(options: SimpleSpanProcessorOptions); forceFlush(): Promise; onStart(_span: Span$1, _parentContext: Context): void; onEnd(span: ReadableSpan): void; private _doExport; shutdown(): Promise; private _shutdown; } //#endregion export { SimpleSpanProcessor }; //# sourceMappingURL=SimpleSpanProcessor.d.cts.map