axy/backtrace
axy/backtrace is a lightweight PHP 8.1+ helper for working with call stacks. It provides Trace and ExceptionTrace utilities to inspect and trim backtraces, useful for debugging and cleaning up exception stack displays in apps and libraries.
ServiceProvider for centralized configuration and lifecycle management.trace.duration be exposed to Prometheus?Backtrace::startSpan() manually in critical paths to verify context propagation.public function handle($request, Closure $next) {
Backtrace::startSpan('http.request', ['http.method' => $request->method()]);
$response = $next($request);
Backtrace::endSpan();
return $response;
}
app/Http/Kernel.php.'backtrace' => [
'instrument_eloquent' => true,
'instrument_queues' => true,
]
Backtrace::configureExporter(new OtlpExporter('http://tempo:4318'));
opentelemetry/opentelemetry-php and optionally ext-bcmath for sampling.Backtrace::startSpan('payment.processing')).config/backtrace.php to avoid hardcoded values.axy/backtrace and opentelemetry/opentelemetry-php for breaking changes. Use Laravel’s composer.json scripts for pre-update checks.http.status=500 and trace.duration > 1s").Backtrace::isEnabled().otel-trace-id middleware.How can I help you explore Laravel packages today?