mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
remove sentry as it does not support actix-web 2.0
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
[package]
|
||||
name = "sentry"
|
||||
version = "0.7.0"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "0.7"
|
||||
sentry-actix = "0.15"
|
||||
sentry = "0.15"
|
@ -1,36 +0,0 @@
|
||||
// <middleware>
|
||||
// use actix_web::{web, App, HttpResponse};
|
||||
// use sentry;
|
||||
// use sentry_actix::SentryMiddleware;
|
||||
|
||||
// use std::env;
|
||||
|
||||
// fn main() {
|
||||
// sentry::init("SENTRY_DSN_GOES_HERE");
|
||||
// env::set_var("RUST_BACKTRACE", "1");
|
||||
// sentry::integrations::panic::register_panic_handler();
|
||||
|
||||
// let mut app = App::new()
|
||||
// // .data(state)
|
||||
// .wrap(SentryMiddleware::new())
|
||||
// .route("/", web::get().to(|| HttpResponse::Ok()));
|
||||
// }
|
||||
// </middleware>
|
||||
|
||||
// <hub>
|
||||
// use sentry::{Hub, Level};
|
||||
// use sentry_actix::ActixWebHubExt;
|
||||
|
||||
// let hub = Hub::from_request(req);
|
||||
// hub.capture_message("Something is not well", Level::Warning);
|
||||
// </hub>
|
||||
|
||||
// <hub2>
|
||||
// use sentry::{Hub, Level};
|
||||
// use sentry_actix::ActixWebHubExt;
|
||||
|
||||
// let hub = Hub::from_request(req);
|
||||
// Hub::run(hub, || {
|
||||
// sentry::capture_message("Something is not well", Level::Warning);
|
||||
// });
|
||||
// </hub2>
|
Reference in New Issue
Block a user