Skip to content

Commit 086958e

Browse files
committed
handle falsy flags
1 parent 1af6abf commit 086958e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/featureFlags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function _INTERNAL_addFeatureFlagToActiveSpan(
140140
const attributes = spanToJSON(span).data;
141141

142142
// If the flag already exists, always update it
143-
if (attributes[`${SPAN_FLAG_ATTRIBUTE_PREFIX}${name}`]) {
143+
if (attributes[`${SPAN_FLAG_ATTRIBUTE_PREFIX}${name}`] != null) {
144144
span.setAttribute(`${SPAN_FLAG_ATTRIBUTE_PREFIX}${name}`, value);
145145
return;
146146
}

0 commit comments

Comments
 (0)