Skip to content

Commit 6394061

Browse files
committed
Do as Lukas told you
1 parent c88ba57 commit 6394061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/metrics/metric-summary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function getMetricSummaryJsonForSpan(span: Span): Record<string, Array<Me
2929
const output: Record<string, Array<MetricSummary>> = {};
3030

3131
for (const [, [exportKey, summary]] of storage) {
32-
output[exportKey].push(dropUndefinedKeys(summary));
32+
output[exportKey] = [...(output[exportKey] || []), dropUndefinedKeys(summary)];
3333
}
3434

3535
return output;

0 commit comments

Comments
 (0)