Sentry Rust SDK

The official Sentry SDK for capturing errors, panics, and traces in Rust applications

SDK
Cargo
v0.49.1
749stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
92/100Excellent
Development Activity96
Maintenance96
Community88
Maturity60
Momentum28

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
79/100Good
Architecture87
Code Quality85
Innovation68
Learning Curve74

The Sentry Rust SDK is the officially maintained client for sending errors, panics, tracing spans, and release-health data from Rust applications to Sentry.io (or a self-hosted Sentry instance). The repository is a Cargo workspace of crates: sentry is the batteries-included entry point most applications depend on, sentry-core holds the instrumentation and event-processing primitives that integrations build on, and a family of sentry-* crates (sentry-actix, sentry-anyhow, sentry-backtrace, sentry-contexts, sentry-debug-images, sentry-log, sentry-opentelemetry, sentry-panic, sentry-slog, sentry-tower, sentry-tracing, sentry-types) each wire Sentry into a specific framework or crate ecosystem.

Installing the sentry crate with the appropriate feature flags automatically captures unhandled panics, backtraces, OS/device/Rust runtime context, and (with the relevant integration crate) request context from actix-web, structured spans from tracing, or error chains from anyhow, sending them to Sentry’s ingestion API over HTTPS via the built-in transport feature.

What You Get

  • Automatic panic and backtrace capture via the panic and backtrace cargo features, with OS/device/Rust runtime context attached automatically
  • A built-in HTTPS transport for sending events to Sentry.io or a self-hosted Sentry instance, with release-health (session tracking) support
  • Framework integrations shipped as separate crates: sentry-actix for actix-web request context, sentry-tower for tower/axum middleware, sentry-tracing and sentry-log for structured logging pipelines, sentry-anyhow for error-chain capture
  • sentry-opentelemetry for bridging OpenTelemetry spans into Sentry’s performance monitoring
  • A sentry-core crate exposing the raw instrumentation primitives for authors writing their own custom integrations

Common Use Cases

  • Adding crash and panic reporting to a production Rust web service or CLI tool with a few lines of setup
  • Capturing structured application errors and stack traces from an actix-web or tower/axum backend into Sentry’s dashboard
  • Bridging existing tracing or log instrumentation into Sentry breadcrumbs and error events without rewriting logging code
  • Correlating distributed traces captured via OpenTelemetry with Sentry’s performance monitoring and error grouping

Under The Hood

Architecture - The workspace splits concerns cleanly: sentry-core defines the Hub, Client, Scope, and event/envelope types that everything else builds on; sentry re-exports sentry-core alongside optional feature-gated integrations (backtrace capture, panic hook installation, context collection, debug-image enumeration, and the HTTP transport); and each sentry-<framework> crate (actix, tower, tracing, log, anyhow, slog, opentelemetry) implements that framework’s specific hook points (middleware, layer, subscriber, or error-conversion trait) against the sentry-core API. sentry-types holds the wire-format types shared across the workspace. Tech Stack - Pure Rust workspace using Cargo feature flags extensively to keep the default sentry dependency footprint small (default features: backtrace, contexts, debug-images, panic, transport, release-health); CI runs via GitHub Actions with clippy and rustfmt enforced (clippy.toml, rustfmt.toml at the workspace root), and codecov tracks coverage per PR. Code Quality - Each crate carries its own tests/ and examples/ directories (the sentry crate alone has ~3,875 lines across src/tests/examples); the workspace is Hacktoberfest-tagged and internally labeled team-web-backend, indicating an actively triaged, team-owned project rather than a community-abandoned SDK. Feature-gated compilation is used deliberately to let consumers opt out of transport/backtrace/panic-hook behavior they don’t want, rather than bundling everything unconditionally. API Design - A minimal integration is a single sentry::init() call with a DSN string; framework integrations follow each host framework’s own idioms (a tracing_subscriber::Layer, an actix-web middleware, a tower::Layer) so existing instrumented applications typically add Sentry with a few lines rather than restructuring error handling, which is a deliberate low-friction design goal for an SDK meant to be bolted onto existing codebases.

Used by 9 apps in this directory

Rust
41%
Other

Hook0

Devops

1,477

Open-source Webhooks-as-a-Service: deliver events to your users with auto-retry, signed payloads, and a real-time subscriber dashboard — all without building the infrastructure yourself.

View details
83
Repo Health
82
Technical
70
Dependency
Built with
Rust41%
TypeScript17%
JavaScript15%
Updated today
TypeScript
69%
Apache 2.0

Laminar

AI Development · Monitoring

3,180

Open-source observability platform purpose-built for AI agents — trace, evaluate, debug, and monitor at scale with SQL access and real-time replay.

View details
85
Repo Health
76
Technical
70
Dependency
Built with
TypeScript69%
Rust29%
Updated yesterday
Rust
96%
Apache 2.0

codex

AI Code Assistants · Developer Tools

106,760

OpenAI's open-source CLI coding agent that reads, edits, and runs code in your terminal using natural language prompts.

View details
89
Repo Health
80
Technical
77
Dependency
Built with
Rust96%
Updated today
Rust
63%
MIT

PostgresML

Databases · AI Development

6,817

Run ML training and LLM inference natively inside PostgreSQL with GPU acceleration — no data movement required.

View details
51
Repo Health
76
Technical
65
Dependency
Built with
Rust63%
JavaScript11%
Updated 1 years ago
TypeScript
70%
AGPL 3.0

Silex

No Code Platforms · Design Tools

2,928

Free, open-source visual website builder that exports clean HTML/CSS — no lock-in, no subscription, host anywhere

View details
88
Repo Health
68
Technical
69
Dependency
Built with
TypeScript70%
JavaScript13%
Updated 2 days ago
Rust
49%
MIT

Svix

Developer Tools · Automation

3,359

Open source, self-hostable webhook infrastructure that handles delivery, retries, HMAC signing, and multi-tenant event management so you never have to build a webhooks system from scratch.

View details
91
Repo Health
77
Technical
70
Dependency
Built with
Rust49%
C#15%
Updated today
TypeScript
73%
AGPL 3.0

Tolaria

Note Taking

19,509

A free, open-source, local-first desktop app for managing markdown knowledge bases on macOS, Windows, and Linux — for second brains, company docs, or AI assistant memory and procedures.

View details
82
Repo Health
71
Technical
70
Dependency
Built with
TypeScript73%
Rust13%
JavaScript12%
Updated yesterday
Rust
71%
MIT

Trieve

AI Development · Search · Developer Tools

2,715

All-in-one self-hostable platform for hybrid search, RAG, recommendations, and analytics built on Rust and Qdrant.

View details
43
Repo Health
74
Technical
66
Dependency
Built with
Rust71%
Updated 6 months ago
Rust
50%
Apache 2.0

Vibe Kanban

AI Agents · AI Code Assistants · Project Management

27,849

A kanban board for planning work and dispatching Claude Code, Codex, Gemini CLI, and eight other coding agents into isolated git worktrees, then reviewing and merging their diffs from one UI.

View details
53
Repo Health
75
Technical
65
Dependency
Built with
Rust50%
TypeScript46%
Updated 3 months ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search