message: fix(release health): Only create sessions if the correct methods are defined
diff: @@ -189,6 +189,13 @@ function startSessionTracking(): void {
  const hub = getCurrentHub();
  + if ('startSession' in hub) {
  + // The only way for this to be false is for there to be a version mismatch between @sentry/browser (>= 6.0.0) and
  + // @sentry/hub (< 5.27.0). In the simple case, there won't ever be such a mismatch, because the two packages are
  + // pinned at the same version in package.json, but there are edge cases where it's possible'. See
  + // https://github.com/getsentry/sentry-javascript/issues/3234 and
  + // https://github.com/getsentry/sentry-javascript/issues/3207.
  +
  hub.startSession();
  hub.captureSession();
  @@ -201,3 +208,4 @@ function startSessionTracking(): void {
  type: 'history',
  });
  }
  +}
  