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

Function captureSession

packages/core/src/client.ts:379–383  ·  view source on GitHub ↗

* Captures a session.

(session: Session)

Source from the content-addressed store, hash-verified

377 * Captures a session.
378 */
379 public captureSession(session: Session): void {
380 this.sendSession(session);
381 // After sending, we set init false to indicate it's not the first occurrence
382 updateSession(session, { init: false });
383 }
384
385 /**
386 * Create a cron monitor check in and send it to Sentry. This method is not available on all clients.

Callers 1

setupOnceFunction · 0.50

Calls 2

updateSessionFunction · 0.90
sendSessionMethod · 0.45

Tested by

no test coverage detected