@Override
  public Stream<Observation> streamObservations() {
    return counter.collect().getDataPoints().stream()
        .map(
            sample ->
                new Observation(
                    category, name, sample.getValue(), getLabelValues(sample.getLabels())));
  }
Streams the observations from the collected counter data points.

@return A stream of observations
metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/PrometheusCounter.java