ref https://github.com/getsentry/sentry-javascript/pull/7904
ref #7904