// NewCaptureHandler creates a new [metrics.Handler] that captures.
return &CaptureHandler{
captures: map[*Capture]struct{}{},
capturesLock: &sync.RWMutex{},
captureCount: &atomic.Int32{},
}
}
// StartCapture returns a started capture. StopCapture should be called on