Sentry Rust SDK

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

SDK
Cargo
v0.49.2
751stars
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 15 apps in this directory

Rust
37%
Other

Hook0

Devops

1,484

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
82
Repo Health
82
Technical
69
Dependency
Built with
Rust37%
TypeScript12%
Updated 4 days ago
Rust
37%
Other

Hook0

Devops

1,484

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
82
Repo Health
82
Technical
69
Dependency
Built with
Rust37%
TypeScript12%
Updated 4 days ago
TypeScript
65%
Apache 2.0

Laminar

AI Development · Monitoring

3,230

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
69
Dependency
Built with
TypeScript65%
Rust33%
Updated yesterday
Rust
97%
Apache 2.0

codex

AI Code Assistants · Developer Tools

121,971

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
76
Dependency
Built with
Rust97%
Updated today
Rust
63%
MIT

PostgresML

Databases · AI Development

6,819

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

View details
51
Repo Health
76
Technical
64
Dependency
Built with
Rust63%
JavaScript11%
Updated 1 years ago
Rust
63%
MIT

PostgresML

Databases · AI Development

6,819

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

View details
51
Repo Health
76
Technical
64
Dependency
Built with
Rust63%
JavaScript11%
Updated 1 years ago
Rust
63%
MIT

PostgresML

Databases · AI Development

6,819

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

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

Silex

No Code Platforms · Design Tools

2,950

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

View details
87
Repo Health
68
Technical
68
Dependency
Built with
TypeScript70%
JavaScript13%
Updated 1 weeks ago
Rust
49%
MIT

Svix

Developer Tools · Automation

3,390

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
90
Repo Health
77
Technical
67
Dependency
Built with
Rust49%
C#15%
Updated 3 days 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