Note: OpenTelemetry is currently alpha/pre-release. This helper library is pre-pre-alpha.
Laravel OpenTelemetry helps integrate OpenTelemetry Traces into your Laravel application.
composer require seanhood/laravel-opentelemetry
// app/Http/Kernel.php protected $middleware = [ ... \SeanHood\LaravelOpenTelemetry\Middleware\Trace::class ];
php artisan vendor:publish --provider="SeanHood\LaravelOpenTelemetry\LaravelOpenTelemetryServiceProvider"
'enable' => true: Whether to enable LaravelOpenTelemetry
'zipkin_endpoint' => 'http://localhost:9411/api/v2/spans': Zipkin Endpoint to send spans to.
'service_name' => 'laravel-otel': The name of your application as you'd like to identify it in your traces.