Skip to content

Commit

Permalink
feat: update to use Laravel Telemetry v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Jul 22, 2024
1 parent 93fc9c3 commit 551ac2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/HorizonTelemetryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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(
Expand Down

0 comments on commit 551ac2d

Please sign in to comment.