(name: string, value: string)
| 67 | } |
| 68 | }, |
| 69 | add(name: string, value: string) { |
| 70 | let s = sets.get(name); |
| 71 | if (!s) { |
| 72 | s = new Set(); |
| 73 | sets.set(name, s); |
| 74 | } |
| 75 | s.add(value); |
| 76 | }, |
| 77 | getAll() { |
| 78 | const result: Record<string, number> = Object.fromEntries(metrics); |
| 79 | for (const [name, h] of histograms) { |