Rust SDK

Rust error tracking for services that rarely fail — until they do

One crate for Rust error tracking, request monitoring, and tracing — feature-gated layers for Axum and Actix, distributed trace propagation, unified with logs, uptime, and infrastructure on the same platform.

Why Rust services need real error tracking

The compiler catches a whole class of bugs — and none of the operational ones. A Result bubbles up an io::Error nobody logs, a downstream service times out and your Axum handler returns 500s for an hour, a config edge case panics a worker at startup. Rust services fail rarely enough that teams skip observability, which means when they do fail, there is nothing to look at: no error history, no request timeline, no trace connecting the failing service to the dependency that caused it.

AllStak's Rust crate fills that gap without fighting the language. Add one dependency to Cargo.toml with the feature flags you need, call allstak::init once and hold the returned guard for the program's lifetime — or just allstak::init_from_env(). Capture errors with capture_error and messages with capture_message; add the feature-gated AllstakLayer for Axum or the Actix wrap, plus reqwest-middleware for outbound calls, and inbound and outbound requests are recorded with the distributed trace continued across services. Everything lands next to your logs, uptime checks, and host metrics — one platform, one bill.

Full-stack Rust monitoring

From the first surfaced error to the host it ran on, AllStak covers your Rust services across every layer.

Error tracking

Capture errors with capture_error and leveled messages with capture_message, tied to the release and environment they came from — grouped into issues you can triage.

Axum & Actix layers

Feature-gated framework middleware — AllstakLayer for Axum, the Allstak wrap for Actix — records inbound requests without touching your handlers.

Distributed tracing

The framework layers and reqwest-middleware record inbound and outbound requests and continue the distributed trace, so a slow call traces across service boundaries.

Log management

Centralize logs from every Rust service next to the errors they relate to — with a tracing feature flag for the ecosystem you already use — searchable from one dashboard.

Infrastructure monitoring

A lightweight host agent reports CPU, memory, disk, network, and Docker — so you can tell an application error from a host under pressure.

Alerts & incidents

Get notified on new errors, spikes, and threshold breaches via Slack, email, webhooks, PagerDuty, Opsgenie, or Telegram — with incidents that keep on-call organized.

Add AllStak in minutes

Add the crate to Cargo.toml with the feature flags you need, then initialize once and hold the guard for the program's lifetime.

main.rs
# Cargo.toml
[dependencies]
allstak = { version = "0.2", features = ["tracing", "axum"] }

// main.rs
let _guard = allstak::init(allstak::ClientOptions {
    api_key: std::env::var("ALLSTAK_API_KEY").unwrap_or_default(),
    host: "https://api.allstak.sa".into(),
    release: Some("[email protected]".into()),
    environment: Some("production".into()),
    ..Default::default()
});

Keep the _guard alive for the program's lifetime — or initialize from the environment with allstak::init_from_env(). Enable only the framework features you use (axum/actix/tracing/…). full setup guide · SDK reference.

What you see in AllStak

Error detail with full context

Open any issue to the captured error, the environment and release it came from, and how often and how recently it fired — everything triage needs on one screen.

Requests & traces

Per-endpoint latency from the Axum or Actix layer, with inbound and outbound requests joined into one distributed trace — so a slow route points at the dependency behind it.

Unified real-time dashboard

Errors, requests, logs, and host health for all your Rust services update live on one dashboard — in English or Arabic — so the whole team shares the same picture.

Why teams pick AllStak for Rust

  • One platform for errors, requests, traces, logs, and infrastructure — one bill, no tool sprawl.
  • Feature-gated design: pull in only the integrations you use — axum, actix, tracing — and nothing else.
  • One init with a held guard — or allstak::init_from_env() — and capture works across the program.
  • Releases and environments separate your data, so a regression points at the deploy that caused it.
  • Predictable SAR pricing with a genuine free tier — start without a credit card.
  • Data stays in Saudi Arabia, with an English and Arabic dashboard for the whole team.

Rust monitoring FAQ

How do I add error tracking to a Rust service?

Add the allstak crate to Cargo.toml with the feature flags you need, call allstak::init once (holding the returned guard for the program's lifetime) or allstak::init_from_env(), then capture errors with allstak::capture_error and messages with allstak::capture_message — the setup guide covers the full configuration.

Does AllStak support Axum and Actix?

Yes. The crate ships feature-gated framework middleware: AllstakLayer for Axum, an Allstak wrap for Actix, and reqwest-middleware for outbound calls. They record inbound and outbound requests and continue the distributed trace across services.

Is AllStak free for Rust?

Yes. AllStak has a free tier you can start on without a credit card, and predictable SAR pricing as you grow. The Rust crate itself is free to use.

Is AllStak a Sentry alternative for Rust?

Yes. You get Rust error tracking with grouping and releases — plus request monitoring through the Axum and Actix layers, distributed tracing, logs, uptime, and infrastructure monitoring on the same platform, with SAR pricing and data stored in Saudi Arabia.

Will the crate slow down my Rust service?

The crate is built for production and follows Rust's pay-for-what-you-use philosophy: integrations are feature-gated, so you compile in only what you enable, and request capture rides the middleware layer rather than wrapping your handlers. You get visibility without giving up the performance you chose Rust for.

Start monitoring Rust today

Add one crate, initialize once, and watch errors, requests, and traces flow into one dashboard. Start free — no credit card required.