import { ReadableSpan } from "./ReadableSpan.mjs"; import { Span as Span$1 } from "../Span.mjs"; import { SpanProcessor } from "../SpanProcessor.mjs"; import { BatchSpanProcessorOptions } from "../types.mjs"; import { Context } from "@opentelemetry/api"; //#region src/export/BatchSpanProcessorBase.d.ts /** * Implementation of the {@link SpanProcessor} that batches spans exported by * the SDK then pushes them to the exporter pipeline. */ declare abstract class BatchSpanProcessorBase implements SpanProcessor { private readonly _maxExportBatchSize; private readonly _maxQueueSize; private readonly _scheduledDelayMillis; private readonly _exportTimeoutMillis; private readonly _exporter; private readonly _metrics; private _isExporting; private _finishedSpans; private _timer; private _shutdownOnce; private _droppedSpansCount; constructor(options: T); forceFlush(): Promise; onStart(_span: Span$1, _parentContext: Context): void; onEnd(span: ReadableSpan): void; shutdown(): Promise; private _shutdown; /** Add a span in the buffer. */ private _addToBuffer; /** * Send all spans to the exporter respecting the batch size limit * This function is used only on forceFlush or shutdown, * for all other cases _flush should be used * */ private _flushAll; private _flushOneBatch; private _maybeStartTimer; private _clearTimer; protected abstract onShutdown(): void; } //#endregion export { BatchSpanProcessorBase }; //# sourceMappingURL=BatchSpanProcessorBase.d.mts.map