File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 99use Illuminate \Contracts \Foundation \Application ;
1010use Illuminate \Support \ServiceProvider as BaseServiceProvider ;
1111use Webmozart \Assert \Assert ;
12+ use Zlodes \PrometheusClient \Collector \CollectorFactory ;
1213use Zlodes \PrometheusClient \Exporter \Exporter ;
1314use Zlodes \PrometheusClient \Exporter \StoredMetricsExporter ;
1415use Zlodes \PrometheusClient \KeySerialization \JsonSerializer ;
@@ -30,6 +31,7 @@ public function register(): void
3031 {
3132 $ this ->mergeConfigFrom (__DIR__ . '/../config/prometheus-exporter.php ' , 'prometheus-exporter ' );
3233
34+ $ this ->app ->singleton (CollectorFactory::class);
3335 $ this ->app ->singleton (Registry::class, ArrayRegistry::class);
3436 $ this ->app ->singleton (Exporter::class, StoredMetricsExporter::class);
3537
You can’t perform that action at this time.
0 commit comments