MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / close

Function close

packages/core/src/client.ts:469–475  ·  view source on GitHub ↗
(timeout?: number)

Source from the content-addressed store, hash-verified

467 */
468 // @ts-expect-error - PromiseLike is a subset of Promise
469 public async close(timeout?: number): PromiseLike<boolean> {
470 _INTERNAL_flushLogsBuffer(this);
471 const result = await this.flush(timeout);
472 this.getOptions().enabled = false;
473 this.emit('close');
474 return result;
475 }
476
477 /**
478 * Get all installed event processors.

Callers

nothing calls this directly

Calls 4

flushMethod · 0.65
getOptionsMethod · 0.65
emitMethod · 0.65

Tested by

no test coverage detected