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

Method flush

packages/node-core/src/sdk/client.ts:92–100  ·  view source on GitHub ↗
(timeout?: number)

Source from the content-addressed store, hash-verified

90 /** @inheritDoc */
91 // @ts-expect-error - PromiseLike is a subset of Promise
92 public async flush(timeout?: number): PromiseLike<boolean> {
93 await this.traceProvider?.forceFlush();
94
95 if (this.getOptions().sendClientReports) {
96 this._flushOutcomes();
97 }
98
99 return super.flush(timeout);
100 }
101
102 /** @inheritDoc */
103 // @ts-expect-error - PromiseLike is a subset of Promise

Callers 1

_initFunction · 0.95

Calls 3

forceFlushMethod · 0.80
getOptionsMethod · 0.65
flushMethod · 0.65

Tested by

no test coverage detected