BrowserTracing id property missing in v7 #5635
-
Hi, I am trying to check if Sentry's APM is initialized with this line of code.
This worked in v6, but while migrating to v7 BrowserTracing removed it's ID property and now Typescript is giving me this error:
Is there fix for this typescript error? I know the static property id is removed in v7 from BrowserTracing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Ah this is a bug! Will fix: #5647 |
Beta Was this translation helpful? Give feedback.
-
For now though, you can use the import { hasTracingEnabled } from '@sentry/tracing'; sentry-javascript/packages/tracing/src/utils.ts Lines 18 to 29 in f563eae |
Beta Was this translation helpful? Give feedback.
For now though, you can use the
hasTracingEnabled
util from@sentry/tracing
to check if Sentry's APM is initialized. We recommend usingsampleRate
to decide to turn on tracing or not.sentry-javascript/packages/tracing/src/utils.ts
Lines 18 to 29 in f563eae