Add sentry

This commit is contained in:
2023-08-10 00:57:41 +02:00
parent e5eba1c6a6
commit 55e8978464
3 changed files with 270 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ pub mod services;
use std::net::SocketAddr;
use tracing::info;
use crate::views::get_router;
use crate::{views::get_router, config::CONFIG};
#[tokio::main]
@@ -15,6 +15,8 @@ async fn main() {
.compact()
.init();
let _guard = sentry::init(CONFIG.sentry_dsn.clone());
let addr = SocketAddr::from(([0, 0, 0, 0], 8080));
let app = get_router().await;