Skip to content

Commit b3416f1

Browse files
committed
better check
1 parent 086958e commit b3416f1

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}`] != null) {
143+
if (`${SPAN_FLAG_ATTRIBUTE_PREFIX}${name}` in attributes) {
144144
span.setAttribute(`${SPAN_FLAG_ATTRIBUTE_PREFIX}${name}`, value);
145145
return;
146146
}

0 commit comments

Comments
 (0)