Laravel is a Rust framework now. Today, Laravel launched Laravel for Rust, a full-stack Rust framework with typed models, queues, durable workflows and the conventions Laravel developers already know.
And Flare is ready for it. Today we are releasing three things:
- A Rust client. The
flareappcrate(code like a composer or npm package) reports errors, panics, logs and traces, with support for Axum and Actix Web, widely used Rust crates. - Laravel for Rust support. The
flareappcrate also has laravel support built in which can be enabeld. - Flare supports OpenTelemetry. Technically, any app that sends OpenTelemetry traces and logs can now send them to Flare.
The Rust client and the Laravel for Rust support are in beta. They work today but expect things to change while Laravel for Rust develops and we learn from your feedback.
Here is the whole setup for a Laravel for Rust app:
fn main() -> std::process::ExitCode {
laravel::Application::configure()
.with_providers(|providers| {
providers.add(flareapp::laravel::provider(flareapp::config!()));
})
.run()
}
Put your FLARE_KEY in .env, and that is it. Failed requests, jobs and scheduled tasks land in Flare, with traces next to them.
If you use Laravel in PHP, this should feel very familiar.
Why we are doing this
Flare started as an error tracker for Laravel. Back then "which languages do you support?" had an easy answer: PHP, and the JavaScript that ran on your frontend.
But the web today is shifting. More and more teams are rewriting their software in faster languages, and Rust is one of the favourites. A rewrite used to be extremely expensive, but AI agents have cut that cost roughly tenfold. We expect that a lot of software written in PHP today will be ported to other languages, and Flare is ready to move with you!
Looking back at 2026, we already saw these migrations:
- Bun moved from Zig to Rust in 11 days. The team's own estimate for doing it by hand: three engineers, about a year.
- GitHub moved the Copilot runtime from TypeScript to Rust. About 430,000 lines, done mostly by one developer in a few months.
- Anthropic moved its Messages API from Python to Rust, and it now uses about 70% less CPU per request.
- Appwrite is moving from PHP to Rust. In their words: "a migration that would once have taken years is now measured in weeks."
In each of these cases the story is the same: Using the existing test suite, engineers port the entire codebase to Rust or Go in a matter of weeks and get it up and running in production in another week. When a rewrite gets that cheap, teams stop asking "can we afford to switch?" and start asking "which language fits this job?".
We do not think PHP is going anywhere. We still write it every day, but Taylor said it best this summer: "PHP is an implementation detail of Laravel". Your stack is about to get more mixed, and your existing tooling should not be the reason you hesitate.
So we asked ourselves: how can we support Rust in Flare today, and whatever comes after Rust, without building everything from scratch each time?
First, we added full OpenTelemetry support to Flare
OpenTelemetry is the open standard for traces and logs, and almost every language has an OTEL library. So it was a complete no-brainer for our backend to accept fully compliant OTLP (the OpenTelemetry protocol).
Flare already accepted a version of OTLP, but it expected spans shaped the way our own clients shape them. So we reworked how Flare reads a trace:
- Flare works out what a span is. A span is one step in a request, like a database query or a view being rendered. Flare now reads the standard OpenTelemetry attributes to tell requests, queries, jobs and outgoing HTTP calls apart. Your library does not have to know anything about Flare.
- Traces can have any shape. A trace no longer needs one neat root span to be accepted.
- Logs keep more detail. Flare stores which library wrote a log line, and links the line to its trace.
The result: if your app already sends OpenTelemetry data with an OpenTelemetry SDK, you only have to change where you send the data.
OTEL_EXPORTER_OTLP_ENDPOINT=https://ingress.flareapp.io
OTEL_EXPORTER_OTLP_HEADERS=x-api-token=your-project-key
Your spans will show up in Flare as routes, queries and jobs, with no Flare package required.
Today this is meant for the technologies Flare supports: PHP, JavaScript and Rust. With more to follow in the coming months.
Errors and panics are a different story. OpenTelemetry has no format for error reports with full stack traces, so for these you still need a Flare client. Which brings us to the next part: the Rust client.
A Rust client that feels like Flare
The flareapp crate is our client for Rust. Install it with Cargo:
cargo add flareapp
Then add one line above main:
#[flareapp::main]
fn main() {
// Flare reports panics, and errors that `main` returns.
}
That already gives you panics and errors with stack traces. The rest is opt-in, through Cargo features:
- Axum: add
.layer(flareapp::tower::layer())to your router. Every request gets its own trace, with the route name, likeGET /users/{id}. - Actix Web: add
.wrap(flareapp::actix::middleware())to your app. Same idea as Axum. - The
tracingcrate: our client uses tracing extensively, so your existing spans become traces in Flare, and your events become logs and breadcrumbs. - sqlx: queries show up as query spans, including the ones that failed.
- reqwest: traces continue across outgoing HTTP calls, so you can follow a request from one service into the next.
- anyhow: report
anyhow::Errorvalues directly.
Two design choices we made when creating the Rust client:
- The client should never slow down your code. A background thread collects the data and sends it in batches. If Flare is slow or down, your app does not notice.
- It is OpenTelemetry on the inside. The client stores logs and traces in the OTLP data model and sends them as they are.
The code is open source at spatie/flare-client-rust, and the full guide lives in the Flare docs.
Laravel for Rust, from day one
We started working on OpenTelemetry support in Flare a couple of weeks ago. Our bet: if Laravel ever came to Rust, it would use OpenTelemetry too. It turns out we were right. Laravel for Rust records its own spans with OpenTelemetry, so building the Laravel integration was pretty straightforward.
The flareapp-laravel crate exposes a service provider that hooks into the OpenTelemetry layer and adds the Flare extras on top:
- Every failure is reported. Failed requests, jobs, scheduled tasks and workflows, plus anything you pass to
laravel::report(). - Traces persist across jobs. A request that calls another service or queues a job stays one trace, across all of them.
- Request details on every report. The URL, the headers, the client IP address and the user agent. Sensitive headers like
AuthorizationandCookieare redacted.
Head over to our docs to get started.Laravel for Rust is brand new and in beta, so a few things are not there yet. We are working hard to bring Laravel for Rust support on par with PHP, so keep an eye on your inbox and our changelog.
What you get in Flare
A Rust project in Flare looks like the Flare you know. You get the same performance lists as a PHP project: routes, queries, jobs, commands and external HTTP calls, each with timings.
Two things are specific to Rust:
- Errors with real stack traces. Our symbolication service turns your raw instruction addresses into readable function names and file names.
- Logs show where they came from. Each log line shows the module that logged it.
One thing is still missing:
- Source code in stack traces. To show the exact line where an error happened, we need access to your source code. At the moment we're working out o how to do this securely so stay tuned for more info.
And something for everyone
The OpenTelemetry work also brought two features to every Flare project, PHP and JavaScript included:
- A new page for every trace in Performance monitoring. See each span, each log line and each error of one request in one place. Filter traces on duration, on failures or on where they started.
- Logs that link back to traces. Jump from a log line to its trace, or see all the logs of one trace by filtering on trace id.
What comes next
Rust is the first new language, not the last. Because Flare supports OpenTelemetry, we can add almost any language or technology. For now we are focused on the three we have today: PHP, JavaScript and Rust. But the door is open for Go, Swift or even C, and OTLP support makes adding each one a much smaller job.
If you are rewriting something in Rust, or you are just curious about Laravel for Rust, give it a try. Create a Rust project in Flare, run cargo add flareapp, and break something on purpose.
Rust support stays in beta for the coming weeks, so this is the best time to send feedback. Is something missing, or did something break? Let us know. We read everything.
Happy debugging!
Continue reading
Introducing: Dark mode for Flare
We heard you, so here it is: a Dark Mode for Flare!
Dries
Every exception has a backstory: introducing previous exceptions in Flare
Flare now shows previous exceptions. Navigate the whole chain and see the stack trace of the exception that actually caused the failure.
Ruben
Subscribe to Backtrace, our quarterly Flare newsletter
No spam, just news & product updates