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

Function teardown

packages/cloudflare/src/wrapMethodWithSentry.ts:139–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 const methodName = wrapperOptions.spanName || 'unknown';
138
139 const teardown = async (): Promise<void> => {
140 if (startNewTrace && storage) {
141 storeSpanContext(storage, methodName);
142 }
143 await flushAndDispose(clientToDispose);
144 };
145
146 const onFulfilled = (res: unknown) => {
147 waitUntil?.(teardown());

Callers 2

onFulfilledFunction · 0.70
onRejectedFunction · 0.70

Calls 2

storeSpanContextFunction · 0.90
flushAndDisposeFunction · 0.90

Tested by

no test coverage detected