This package provides an OpenTelemetry integration for Laravel applications. It is based on the OpenTelemetry PHP project and provides instrumentation for a number of Laravel components.
This package currently relies on a beta release of the OpenTelemetry PHP project.
We will keep the OpenTelemetry PHP dependency up-to-date as new releases are made available. However, we cannot guarantee that this package will work with future versions of OpenTelemetry PHP without breaking changes.
This package is currently in development and contains the following Watchers:
- Incoming HTTP Requests
- HTTP Client Requests
- Database Queries
- Redis Commands
- Queued Jobs
- Events
- Event Listeners
- Cache Commands
- View Rendering (Exploring Capabilities)
- Exceptions
- Log Messages
- Scheduled Tasks
- PHP 8.2+
- Laravel 10.0+
You can install the package via composer:
composer require plunkettscott/laravel-otel
- Install the package
composer require plunkettscott/laravel-otel
- Execute the
otel:install
command
php artisan otel:install
-
Configure the methods in
app/Providers/OtelServiceProvider.php
to suit your needs -
Configure the watchers in
config/otel.php
to suit your needs. See the documentation for more information.
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email oss (at) scottplunkett.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.