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 c88ba57 commit 6394061Copy full SHA for 6394061
packages/core/src/metrics/metric-summary.ts
@@ -29,7 +29,7 @@ export function getMetricSummaryJsonForSpan(span: Span): Record<string, Array<Me
29
const output: Record<string, Array<MetricSummary>> = {};
30
31
for (const [, [exportKey, summary]] of storage) {
32
- output[exportKey].push(dropUndefinedKeys(summary));
+ output[exportKey] = [...(output[exportKey] || []), dropUndefinedKeys(summary)];
33
}
34
35
return output;
0 commit comments