(captureId: string)
| 43 | const captures: Map<string, OtelCapture> = new Map() |
| 44 | |
| 45 | function bucketFor(captureId: string): OtelCapture { |
| 46 | let bucket = captures.get(captureId) |
| 47 | if (!bucket) { |
| 48 | bucket = { spans: [], histograms: [] } |
| 49 | captures.set(captureId, bucket) |
| 50 | } |
| 51 | return bucket |
| 52 | } |
| 53 | |
| 54 | export function resetOtelCapture(captureId: string): void { |
| 55 | captures.set(captureId, { spans: [], histograms: [] }) |
no test coverage detected