File tree 1 file changed +3
-3
lines changed
packages/core/src/metrics
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ function getMetricStorageForSpan(span: Span): MetricSummaryStorage | undefined {
20
20
/**
21
21
* Fetches the metric summary if it exists for the passed span
22
22
*/
23
- export function getMetricSummaryJsonForSpan ( span : Span ) : Record < string , MetricSummary > | undefined {
23
+ export function getMetricSummaryJsonForSpan ( span : Span ) : Record < string , Array < MetricSummary > > | undefined {
24
24
const storage = getMetricStorageForSpan ( span ) ;
25
25
26
26
if ( ! storage ) {
27
27
return undefined ;
28
28
}
29
- const output : Record < string , MetricSummary > = { } ;
29
+ const output : Record < string , Array < MetricSummary > > = { } ;
30
30
31
31
for ( const [ , [ exportKey , summary ] ] of storage ) {
32
- output [ exportKey ] = dropUndefinedKeys ( summary ) ;
32
+ output [ exportKey ] . push ( dropUndefinedKeys ( summary ) ) ;
33
33
}
34
34
35
35
return output ;
You can’t perform that action at this time.
0 commit comments