1
0
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:
Nikolay Kim
2020-01-02 11:44:04 +06:00
parent ee4911d45a
commit 26c877a519
3 changed files with 0 additions and 88 deletions

View File

@ -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"

View File

@ -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>