Closed AbhiPrasad closed 1 year ago
So - we intentionally don't use the id
here for treeshaking purposes: https://github.com/getsentry/sentry-javascript/blob/f563eae7e032f2b3d71147be922f95d98babdcb1/packages/tracing/src/browser/browsertracing.ts#L124-L127
We should find a workaround though to unblock the user.
Of course, this is very dirty but just to unblock: We have getIntegrationById()
on the BaseClient
, meaning if we applied a sprinkle of @ts-ignore
we could do Sentry.getCurrentHub().getClient()?.getIntegrationById('BrowserTracing')
.
I knew this change would bite us in the butt some day - sorry about that.
Discussed in https://github.com/getsentry/sentry-javascript/discussions/5635