Comments (7)
Could you try composer require arkaitzgarro/elastic-apm-laravel --no-scripts
?
from elastic-apm-laravel.
hello @arkaitzgarro , i had the same issue and the installation seems to be solved by using --no-scripts.
btw the component makes php artisan config:cache command fail
root@ip-172-26-2-29:/var/www/******#
php artisan config:cache
TypeError
Return value of AG\ElasticApmLaravel\ServiceProvider::getAppConfig() must be of the type array, null re
turned
at vendor/arkaitzgarro/elastic-apm-laravel/src/ServiceProvider.php:231
227▕ if ($this->app->bound(VersionResolver::class)) {
228▕ $config['appVersion'] = $this->app->make(VersionResolver::class)->getVersion();
229▕ }
230▕
➜ 231▕ return $config;
232▕ }
233▕
234▕ private function isAgentDisabled(): bool
235▕ {
can u please find a solid solution ?
regards
I
from elastic-apm-laravel.
hello , any news about this ?
from elastic-apm-laravel.
Can you try publishing the configuration file, and clearing the cache after?
php artisan vendor:publish --tag=config
from elastic-apm-laravel.
running the command makes the "compiler" fail again. for the moment, I manually copied into the config folder the elastic-apm-laravel.php file, THEN I installed the plugin. doing this way seems to work. I hope it will help, but i guess there is room for improvement. regards. I
from elastic-apm-laravel.
Thanks for letting us know. We'll investigate further if it keeps happening.
from elastic-apm-laravel.
Try with deleting app/bootstrap/cache and try again, This solved my issue.
from elastic-apm-laravel.
Related Issues (20)
- Use of undefined constant LARAVEL_START - assumed 'LARAVEL_START' (this will throw an Error in a future version of PHP) HOT 3
- Did not collect data from Api routes HOT 1
- Return value of AG\ElasticApmLaravel\ServiceProvider::getAppConfig() must be of the type array, null returned HOT 4
- installation error HOT 2
- Logs for deprecated parameters
- Apm setup HOT 4
- Laravel 9? HOT 12
- Laravel Octane Support HOT 8
- Standard ELASTIC_APM_ENVIRONMENT value is not used correctly
- Build failing due to failure in the Command collector HOT 3
- Transaction not getting associated with Errors on Elastic Cloud APM HOT 1
- Send only Transactions associated with Exceptions to APM Server HOT 1
- Application ENV not picked up by agent HOT 1
- Need to include latest version of nipwaayoni/elastic-apm-php-agent HOT 2
- Jobs not tracked HOT 8
- AG\ElasticApmLaravel\Collectors\EventDataCollector::shouldIgnoreTransaction(): Argument #1 ($transaction_name) must be of type string, HOT 6
- Laravel Telescope Support HOT 1
- Is there a reason that this agent doesn't allow collecting stacktraces? HOT 2
- Problems with self-signed certificates HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastic-apm-laravel.