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 7304f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions src/HorizonTelemetryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function boot(): void
/** @var Repository $config */
$config = $this->app->make(Repository::class);

if (! $config->get('telemetry.enabled', true)) {
if ($config->get('telemetry.sdk.disabled', false)) {
return null;
}

Expand All @@ -52,7 +52,7 @@ public function boot(): void
/** @var Repository $config */
$config = $this->app->make(Repository::class);

if (! $config->get('telemetry.enabled', true)) {
if ($config->get('telemetry.sdk.disabled', false)) {
return null;
}

Expand Down

0 comments on commit 7304f83

Please sign in to comment.