docs: public static void createAndRegister(PrometheusStatsConfiguration configuration) {
      CollectorRegistry registry = configuration.getRegistry();
      if (registry == null) {
        registry = CollectorRegistry.defaultRegistry;
      }
      new PrometheusStatsCollector(
              Metrics.getExportComponent().getMetricProducerManager(), configuration.getNamespace())
          .register(registry);
    }