import { ReadableSpan } from "./export/ReadableSpan.cjs"; import { Span as Span$1 } from "./Span.cjs"; import { Context } from "@opentelemetry/api"; //#region src/SpanProcessor.d.ts /** * SpanProcessor is the interface Tracer SDK uses to allow synchronous hooks * for when a {@link Span} is started or when a {@link Span} is ended. */ interface SpanProcessor { /** * Forces to export all finished spans */ forceFlush(): Promise; /** * Called when a {@link Span} is started, if the `span.isRecording()` * returns true. * @param span the Span that just started. */ onStart(span: Span$1, parentContext: Context): void; /** * Called when a {@link Span} is ending, if the `span.isRecording()` * returns true. * @param span the Span that is ending. * * @experimental This method is experimental and may break in minor versions of this package */ onEnding?(span: Span$1): void; /** * Called when a {@link ReadableSpan} is ended, if the `span.isRecording()` * returns true. * @param span the Span that just ended. */ onEnd(span: ReadableSpan): void; /** * Shuts down the processor. Called when SDK is shut down. This is an * opportunity for processor to do any cleanup required. */ shutdown(): Promise; } //#endregion export { SpanProcessor }; //# sourceMappingURL=SpanProcessor.d.cts.map