Skip to content

Commit

Permalink
Merge pull request #14 from worksome/feature/otel-config
Browse files Browse the repository at this point in the history
feat: update to use Laravel Telemetry v0.5
  • Loading branch information
owenvoke committed Jul 25, 2024
2 parents 122c738 + 551ac2d commit 127628e
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 127628e

Please sign in to comment.