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

Function captureSession

packages/core/src/exports.ts:381–390  ·  view source on GitHub ↗
(end: boolean = false)

Source from the content-addressed store, hash-verified

379 * Defaults to `false`.
380 */
381export function captureSession(end: boolean = false): void {
382 // both send the update and pull the session from the scope
383 if (end) {
384 endSession();
385 return;
386 }
387
388 // only send the update
389 _sendSessionUpdate();
390}

Callers

nothing calls this directly

Calls 2

_sendSessionUpdateFunction · 0.85
endSessionFunction · 0.70

Tested by

no test coverage detected