See https://github.com/getsentry/sentry-python/pull/6193#discussion_r3190720319
See #6193 (comment)