sentry-conduit

Crates.iosentry-conduit
lib.rssentry-conduit
version0.29.0
sourcesrc
created_at2021-10-07 11:09:05.9361
updated_at2022-11-17 19:57:58.207376
descriptionSentry middleware for conduit
homepage
repositoryhttps://github.com/Turbo87/sentry-conduit.git
max_upload_size
id461688
size75,382
Tobias Bieniek (Turbo87)

documentation

README

sentry-conduit

Sentry middleware for conduit

Features

  • Automatic per-request scoping of errors, breadcrumbs and other data
  • Error capturing for handler results
  • Includes HTTP request metadata in all reports
  • Optional release health tracking
  • Reporting of error stack traces, if available
  • Limited transaction field support (aka. the route pattern that was used by conduit-router)

MSRV

The "Minimum Supported Rust Version" of this project is: v1.60.0

Usage

fn build_app() -> impl Hander {
    let mut router = RouteBuilder::new();
    router.get("/", healthy);
    router.get("/msg", message);
    router.get("/err", error);
    router.get("/panic", panic);

    let mut builder = MiddlewareBuilder::new(router);
    builder.add(SentryMiddleware::default());
    builder
}

The full example code is available in the examples folder.

License

This project is licensed under either of

at your option.

Commit count: 142

cargo fmt