mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 18:02:56 +00:00
storage_controller: setup sentry reporting (#7311)
## Problem No alerting for storage controller is in place. ## Summary of changes Set up sentry for the storage controller.
This commit is contained in:
@@ -13,6 +13,7 @@ use tokio_util::sync::CancellationToken;
|
||||
use utils::auth::{JwtAuth, SwappableJwtAuth};
|
||||
use utils::logging::{self, LogFormat};
|
||||
|
||||
use utils::sentry_init::init_sentry;
|
||||
use utils::{project_build_tag, project_git_version, tcp_listener};
|
||||
|
||||
project_git_version!(GIT_VERSION);
|
||||
@@ -158,6 +159,8 @@ fn main() -> anyhow::Result<()> {
|
||||
std::process::exit(1);
|
||||
}));
|
||||
|
||||
let _sentry_guard = init_sentry(Some(GIT_VERSION.into()), &[]);
|
||||
|
||||
tokio::runtime::Builder::new_current_thread()
|
||||
// We use spawn_blocking for database operations, so require approximately
|
||||
// as many blocking threads as we will open database connections.
|
||||
|
||||
Reference in New Issue
Block a user