// StopCapture stops capturing metrics for the given capture instance.
c.capturesLock.Lock()
defer c.capturesLock.Unlock()
delete(c.captures, capture)
c.captureCount.Add(-1)
}
// WithTags implements [metrics.Handler.WithTags].