Fix config retrieval
At PrometheusServiceProvider, the varaible $configs was trying to access an unexisting key storage_adapters, since this variable only exists in the prometheus config.
This commit is contained in:
parent
17dcf7f3a3
commit
d74da49539
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class PrometheusServiceProvider extends ServiceProvider
|
|||
$this->app->bind(Adapter::class, function ($app) {
|
||||
$factory = $app['prometheus.storage_adapter_factory']; /** @var StorageAdapterFactory $factory */
|
||||
$driver = config('prometheus.storage_adapter');
|
||||
$configs = config('storage_adapters');
|
||||
$configs = config('prometheus.storage_adapters');
|
||||
$config = array_get($configs, $driver, []);
|
||||
return $factory->make($driver, $config);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue