Skip to content

Commit

Permalink
use env repository instead of $_SERVER
Browse files Browse the repository at this point in the history
  • Loading branch information
cappuc committed Feb 14, 2024
1 parent 47d6851 commit 04d2159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelOpenTelemetryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ private function configureEnvironmentVariables(): void
$envRepository->set(OTELVariables::OTEL_SERVICE_NAME, config('opentelemetry.service_name'));

// Disable debug scopes wrapping
$_SERVER['OTEL_PHP_DEBUG_SCOPES_DISABLED'] = 1;
$envRepository->set('OTEL_PHP_DEBUG_SCOPES_DISABLED', '1');
}
}

0 comments on commit 04d2159

Please sign in to comment.