From 551ac2de041f21131c8cc8edbc30a0496eff7a32 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Mon, 22 Jul 2024 16:37:06 +0100 Subject: [PATCH] feat: update to use Laravel Telemetry v0.5 --- composer.json | 2 +- src/HorizonTelemetryServiceProvider.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index c3d23d8..36b14a3 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "illuminate/contracts": "^10.0 || ^11.0", "laravel/horizon": "^5.22.1", "open-telemetry/api": "^1.0", - "worksome/laravel-telemetry": "^0.4" + "worksome/laravel-telemetry": "^0.5" }, "require-dev": { "nunomaduro/collision": "^7.10 || ^8.1", diff --git a/src/HorizonTelemetryServiceProvider.php b/src/HorizonTelemetryServiceProvider.php index e9691f6..b04da79 100644 --- a/src/HorizonTelemetryServiceProvider.php +++ b/src/HorizonTelemetryServiceProvider.php @@ -30,8 +30,8 @@ public function boot(): void /** @var Repository $config */ $config = $this->app->make(Repository::class); - if (! $config->get('telemetry.enabled', true)) { - return null; + if ($config->get('telemetry.sdk.disabled')) { + return; } if ($config->get($this->configKey(MeterName::FailedJobs), true)) { @@ -52,8 +52,8 @@ public function boot(): void /** @var Repository $config */ $config = $this->app->make(Repository::class); - if (! $config->get('telemetry.enabled', true)) { - return null; + if ($config->get('telemetry.sdk.disabled')) { + return; } if ($currentMasterSupervisorsSchedule = $config->get(