@tigorlazuardi/otel-cloudflare - v1.1.1
    Preparing search index...

    Interface FlushContext

    Flush context for managing collectors in a request lifecycle

    interface FlushContext {
        logCount: number;
        spans: ExportableSpan[];
        clear(): void;
        flush(): Promise<void>;
        shutdown(): Promise<void>;
    }
    Index

    Properties

    Methods

    Properties

    logCount: number

    Collected log count (for diagnostics)

    Collected spans (for manual access if needed)

    Methods

    • Clear all collected data without exporting (does not remove global collectors)

      Returns void

    • Flush all collected data to OTLP endpoint (does not remove global collectors)

      Returns Promise<void>

    • Flush and then remove global collectors - call at end of request lifecycle

      Returns Promise<void>