function captureSession(end = false) {
  // both send the update and pull the session from the scope
  if (end) {
    endSession();
    return;
  }

  // only send the update
  _sendSessionUpdate();
}
Sends the current session on the scope to Sentry

@param end If set the session will be marked as exited and removed from the scope.
           Defaults to `false`.