Relative Content

Tag Archive for phplaravelopen-telemetry

Instrumenting Laravel artisan commands with OpenTelemetry

I’m using OpenTelemetry to instrument a Laravel application, and struggling with how to create root spans for console commands (though Laravel artisan). I have noticed that the framework dispatches CommandStarting and CommandFinished events when it’s starting and finishing a command, which I’m attempting to listen for to construct my root span: