MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / flushAndDispose

Function flushAndDispose

packages/cloudflare/src/flush.ts:125–134  ·  view source on GitHub ↗
(client: Client | undefined, timeout = 2000)

Source from the content-addressed store, hash-verified

123 * @returns A promise that resolves when flush and dispose are complete
124 */
125export async function flushAndDispose(client: Client | undefined, timeout = 2000): Promise<void> {
126 if (!client) {
127 await flush(timeout);
128
129 return;
130 }
131
132 await client.flush(timeout);
133 client.dispose();
134}

Callers 9

flush.test.tsFile · 0.90
wrapRequestHandlerFunction · 0.90
endSpanOnceFunction · 0.90
getFunction · 0.90
teardownFunction · 0.90
wrapScheduledHandlerFunction · 0.90
wrapEmailHandlerFunction · 0.90
wrapQueueHandlerFunction · 0.90
wrapTailHandlerFunction · 0.90

Calls 3

flushFunction · 0.90
flushMethod · 0.65
disposeMethod · 0.45

Tested by

no test coverage detected