Skip to content

Commit a8aefd9

Browse files
committed
Fix for logEnricherIntegration.ts
1 parent 118aa8d commit a8aefd9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/core/src/js/integrations/logEnricherIntegration.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ function extractScopeAttributes(
114114
): void {
115115
if (scope && typeof scope.getScopeData === 'function') {
116116
const scopeAttrs = scope?.getScopeData?.().attributes || {};
117-
for (const [key, value] of Object.entries(scopeAttrs)) {
117+
Object.keys(scopeAttrs).forEach(key => {
118+
const value = scopeAttrs[key];
118119
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
119120
target[key] = value;
120121
}
121-
}
122+
});
122123
}
123124
}
124125

0 commit comments

Comments
 (0)