Skip to content

Commit dfa6aba

Browse files
author
Luca Forstner
committed
🧠
1 parent f154b03 commit dfa6aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/hasTracingEnabled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function hasTracingEnabled(
2020
const options = maybeOptions || client?.getOptions();
2121
return (
2222
!!options &&
23-
// Note: This check is `!= null`, meaning "nullish"
23+
// Note: This check is `!= null`, meaning "nullish". `0` is not "nullish", `undefined` and `null` are. (This comment was brought to you by 15 minutes of questioning life)
2424
(options.tracesSampleRate != null || !!options.tracesSampler)
2525
);
2626
}

0 commit comments

Comments
 (0)