(pairs)
| 81 | } |
| 82 | |
| 83 | function toAttributes(pairs) { |
| 84 | const attributes = []; |
| 85 | for (const [key, raw] of Object.entries(pairs)) { |
| 86 | if (raw === null || raw === undefined) continue; |
| 87 | attributes.push({ key, value: { stringValue: String(raw) } }); |
| 88 | } |
| 89 | return attributes; |
| 90 | } |
| 91 | |
| 92 | function createMetricSet() { |
| 93 | return { |
no outgoing calls
no test coverage detected