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.
1 parent b2ba0ef commit e4fc16aCopy full SHA for e4fc16a
packages/tracing/src/utils.ts
@@ -19,10 +19,7 @@ export function hasTracingEnabled(
19
.getClient()
20
?.getOptions(),
21
): boolean {
22
- if (!options) {
23
- return false;
24
- }
25
- return 'tracesSampleRate' in options || 'tracesSampler' in options;
+ return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);
26
}
27
28
/**
0 commit comments