@grand-board/otel-cloudflare - v6.11.0
    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>;
    }
    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

      Returns void

    • Flush all collected data to OTLP endpoint

      Returns Promise<void>