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

    Function getFlushContext

    • Get the current FlushContext created by initOTLP

      Returns null if initOTLP hasn't been called yet.

      Returns FlushContext | null

      // In traceHandler callback or anywhere after initOTLP
      const ctx = getFlushContext();
      if (ctx) {
      event.platform?.context?.waitUntil(ctx.flush());
      }