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 118aa8d commit a8aefd9Copy full SHA for a8aefd9
1 file changed
packages/core/src/js/integrations/logEnricherIntegration.ts
@@ -114,11 +114,12 @@ function extractScopeAttributes(
114
): void {
115
if (scope && typeof scope.getScopeData === 'function') {
116
const scopeAttrs = scope?.getScopeData?.().attributes || {};
117
- for (const [key, value] of Object.entries(scopeAttrs)) {
+ Object.keys(scopeAttrs).forEach(key => {
118
+ const value = scopeAttrs[key];
119
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
120
target[key] = value;
121
}
- }
122
+ });
123
124
125
0 commit comments