Get the current FlushContext created by initOTLP
Returns null if initOTLP hasn't been called yet.
// In traceHandler callback or anywhere after initOTLPconst ctx = getFlushContext();if (ctx) { event.platform?.context?.waitUntil(ctx.flush());} Copy
// In traceHandler callback or anywhere after initOTLPconst ctx = getFlushContext();if (ctx) { event.platform?.context?.waitUntil(ctx.flush());}
Get the current FlushContext created by initOTLP
Returns null if initOTLP hasn't been called yet.