Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
🔊 Set app in Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Jul 18, 2021
1 parent 628285c commit fa031af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blitz-dashboard"
version = "0.10.0"
version = "0.10.1"
authors = ["Pavel Perestoronin <[email protected]>"]
edition = "2018"
resolver = "2"
Expand Down
1 change: 1 addition & 0 deletions src/crawler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ enum CrawlMode {

impl Crawler {
pub async fn run(api: WargamingApi, opts: CrawlerOpts) -> crate::Result {
sentry::configure_scope(|scope| scope.set_tag("app", "crawler"));
let database = crate::database::open(&opts.database).await?;
let crawler = Self { api, database };
loop {
Expand Down
1 change: 1 addition & 0 deletions src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mod routes;

/// Run the web app.
pub async fn run(api: WargamingApi, opts: WebOpts) -> crate::Result {
sentry::configure_scope(|scope| scope.set_tag("app", "web"));
log::info!("Listening on {}:{}.", opts.host, opts.port);
rocket::custom(to_config(&opts)?)
.manage(AccountInfoCache::new(api.clone()))
Expand Down

0 comments on commit fa031af

Please sign in to comment.