code: func (t *compactionTracker) Attempted(level compactionLevel, success bool, duration time.Duration) {
  	if success {
  		atomic.AddUint64(&t.ok[level], 1)
  
  		labels := t.Labels(level)
  
  		t.metrics.CompactionDuration.With(labels).Observe(duration.Seconds())
  
  		labels["status"] = "ok"
  		t.metrics.Compactions.With(labels).Inc()
  
  		return
  	}
  
  	atomic.AddUint64(&t.errors[level], 1)
  
  	labels := t.Labels(level)
  	labels["status"] = "error"
  	t.metrics.Compactions.With(labels).Inc()
  }
docs: // Attempted updates the number of compactions attempted for the provided level.