We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hasTracingEnabled
1 parent ddff302 commit 7fc479fCopy full SHA for 7fc479f
packages/core/src/utils/hasTracingEnabled.ts
@@ -16,12 +16,8 @@ export function hasTracingEnabled(
16
return false;
17
}
18
19
- const options = maybeOptions || getClientOptions();
+ const client = getClient();
20
+ const options = maybeOptions || (client && client.getOptions());
21
// eslint-disable-next-line deprecation/deprecation
22
return !!options && (options.enableTracing || 'tracesSampleRate' in options || 'tracesSampler' in options);
23
-
24
-function getClientOptions(): Options | undefined {
25
- const client = getClient();
26
- return client && client.getOptions();
27
-}
0 commit comments