Download the PHP package eerzho/opentelemetry-auto-class-laravel without Composer
On this page you can find all versions of the php package eerzho/opentelemetry-auto-class-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eerzho/opentelemetry-auto-class-laravel
More information about eerzho/opentelemetry-auto-class-laravel
Files in eerzho/opentelemetry-auto-class-laravel
Package opentelemetry-auto-class-laravel
Short Description Trace what your Laravel methods received, returned, and threw — without writing a single span.
License MIT
Informations about the package opentelemetry-auto-class-laravel
opentelemetry-auto-class-laravel
Trace what your Laravel methods received, returned, and threw — without writing a single span.
The Laravel integration for opentelemetry-auto-class — your classes are discovered and registered automatically.
This is a read-only sub-split. Please open issues and pull requests in the monorepo.
Installation
Requirements:
- ext-opentelemetry
- PHP 8.2+
- Laravel 10+
Configuration
Scanned namespaces default to App\. To customize, publish the config:
Usage
Add #[Trace] to any class in a scanned namespace:
All three attributes and their options are fully documented in the core.
How it works
On boot the service provider:
- Reads namespaces from
config/trace.php - Discovers classes in those namespaces via Composer's
ClassLoader::getClassMap() - Scans them for the
#[Trace]attribute - Registers
ext-opentelemetryhooks for matched methods
Only classes present in the Composer class map are discovered — run
composer dump-autoload -oin production so nothing is missed.
Disabling instrumentation
All versions of opentelemetry-auto-class-laravel with dependencies
ext-opentelemetry Version *
open-telemetry/api Version ^1.0
eerzho/opentelemetry-auto-class Version self.version
illuminate/support Version ^11.0 || ^12.0 || ^13.0