import type { Context } from "@opentelemetry/api"; import type { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base"; /** * Runs a user-supplied span processor ahead of the Trigger.dev processors. * * The user processor can rewrite or remove any attribute, which is how span * content gets redacted before export. The attributes the platform uses to * link a span to its run and to stitch partial and final spans together are * restored afterwards. A throwing processor is reported to the OTel error * handler instead of escaping into `startSpan` or `span.end()`. */ export declare class UserSpanProcessorWrapper implements SpanProcessor { private readonly _processor; constructor(_processor: SpanProcessor); onStart(span: Span, parentContext: Context): void; onEnding(span: Span): void; onEnd(span: ReadableSpan): void; forceFlush(): Promise; shutdown(): Promise; }