We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52336c9 commit 12e3d77Copy full SHA for 12e3d77
src/DDTrace/Integrations/Laravel/LaravelIntegration.php
@@ -91,7 +91,12 @@ function ($app) use ($integration) {
91
$configPath = realpath($app->configPath());
92
if (file_exists($configPath . '/app.php')) {
93
$config = require $configPath . '/app.php';
94
- $integration->serviceName = $config['name'];
+ if (isset($config['name'])) {
95
+ $integration->serviceName = $config['name'];
96
+ }
97
98
+ if (empty($integration->serviceName)) {
99
+ $integration->serviceName = isset($_ENV['APP_NAME']) ? $_ENV['APP_NAME'] : 'Laravel';
100
}
101
102
0 commit comments