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

Function endSpanOnce

packages/cloudflare/src/request.ts:151–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 let ended = false;
150
151 const endSpanOnce = (): void => {
152 if (ended) return;
153
154 ended = true;
155 span.end();
156 waitUntil?.(flushAndDispose(client));
157 };
158
159 const transform = new TransformStream({
160 flush() {

Callers 2

flushFunction · 0.85
cancelFunction · 0.85

Calls 3

flushAndDisposeFunction · 0.90
waitUntilFunction · 0.85
endMethod · 0.65

Tested by

no test coverage detected