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 9
9
use Illuminate \Contracts \Foundation \Application ;
10
10
use Illuminate \Support \ServiceProvider as BaseServiceProvider ;
11
11
use Webmozart \Assert \Assert ;
12
+ use Zlodes \PrometheusClient \Collector \CollectorFactory ;
12
13
use Zlodes \PrometheusClient \Exporter \Exporter ;
13
14
use Zlodes \PrometheusClient \Exporter \StoredMetricsExporter ;
14
15
use Zlodes \PrometheusClient \KeySerialization \JsonSerializer ;
@@ -30,6 +31,7 @@ public function register(): void
30
31
{
31
32
$ this ->mergeConfigFrom (__DIR__ . '/../config/prometheus-exporter.php ' , 'prometheus-exporter ' );
32
33
34
+ $ this ->app ->singleton (CollectorFactory::class);
33
35
$ this ->app ->singleton (Registry::class, ArrayRegistry::class);
34
36
$ this ->app ->singleton (Exporter::class, StoredMetricsExporter::class);
35
37
You can’t perform that action at this time.
0 commit comments