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

Function endSession

packages/core/src/exports.ts:349–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 * End the session on the current isolation scope.
348 */
349export function endSession(): void {
350 const isolationScope = getIsolationScope();
351 const currentScope = getCurrentScope();
352
353 const session = currentScope.getSession() || isolationScope.getSession();
354 if (session) {
355 closeSession(session);
356 }
357 _sendSessionUpdate();
358
359 // the session is over; take it off of the scope
360 isolationScope.setSession();
361}
362
363/**
364 * Sends the current Session on the scope

Callers 3

setupOnceFunction · 0.90
startSessionFunction · 0.70
captureSessionFunction · 0.70

Calls 6

getIsolationScopeFunction · 0.90
getCurrentScopeFunction · 0.90
closeSessionFunction · 0.90
_sendSessionUpdateFunction · 0.85
getSessionMethod · 0.80
setSessionMethod · 0.80

Tested by

no test coverage detected