Skip to content

For backend engineers and SREs

You run services and you want to know, fast, when one is slow or failing. This path takes you from your first instrumented request to watching traffic live, then to the dashboards and alerts that tell you about a problem before your users do. (SRE stands for site reliability engineer, the person who keeps production healthy.)

Follow these in order. Each link says why it’s here.

Your path

  1. Send your first trace to Logfire: install Logfire and link this machine to a project. A trace is the full record of one request; a span is one step inside it (a database query, an outgoing API call). This is the five-minute foundation everything else builds on.

  2. Instrument your framework and dependencies: one line each turns on tracing for the request path:

  3. Watch your app’s traces arrive live: tail requests as they happen while you reproduce a bug or watch a deploy. You can search history in SQL from the same screen.

  4. Find which service is slow or failing: see every service ranked by request rate, error rate, and latency, then drill into the failing traces. This view also gives you per-service health at a glance. (It’s in Beta.)

  5. Explore: ask anything of your data in SQL: write SQL over your traces and metrics to answer one-off questions: which endpoint is slowest, which requests errored, where the time went.

  6. Dashboards: turn the questions you check often into charts on one screen: is latency creeping up, are errors spiking during this rollout.

  7. Alerts: an alert is a SQL query Logfire runs on a schedule; when it returns rows, Logfire notifies you in Slack, Opsgenie, or a webhook, so you hear about trouble without watching a screen.

Try the full journey

  • Debug a slow endpoint: a start-to-finish walkthrough: find the slow request in the Live view, open its trace, and see exactly which step ate the time.