Requirements
- PHP 8.6
webpatser/fledge-framework^13.43.0.3webpatser/fledge-fiber^13.43.0.3. It providesFledge\Async\FiberContext, which lets parallel fibers join the current trace. Without the hook the package logs a warning (once per process, and at most once an hour across workers when the circuit breaker is on).webpatser/fledge-loop^0.1, pulled in by Composer.
livewire/livewire is optional and only needed for Livewire component spans. Use ^4.4.8; earlier 4.x releases have GHSA-mhf7-xp6r-6qrc.
Note: This package supports only the latest stable PHP release. When a new PHP version is released, the next release of this package requires it and support for the previous PHP version ends. Currently: PHP 8.6.
Install
composer require webpatser/fledge-apm
The OTel SDK discovers its pieces through two Composer plugins, so your app has to allow them:
{ "config": { "allow-plugins": { "php-http/discovery": true, "tbachert/spi": true } }}
The service provider Fledge\Apm\ApmServiceProvider is auto-discovered. To publish the config:
php artisan vendor:publish --tag=apm-config
The http/protobuf encoder is pure PHP, so ext-protobuf is optional. It only makes encoding faster.