@Override
  public Stream<Observation> streamObservations() {
    Collection<MetricData> metricsList = this.debugMetricReader.getAllMetrics();
    return metricsList.stream().flatMap(this::convertToObservations);
  }
Instantiates a new Open telemetry system.

@param enabledCategories the enabled categories
@param timersEnabled the timers enabled
@param jobName the job name
@param setAsGlobal the set as global
metrics/core/src/main/java/org/hyperledger/besu/metrics/opentelemetry/OpenTelemetrySystem.java