Sentry integration for storage. (#2926)

Added basic instrumentation to integrate sentry with the proxy, pageserver, and safekeeper processes.
Currently in sentry there are three projects, one for each process. Sentry url is sent to all three processes separately via cli args.
This commit is contained in:
Kliment Serafimov
2022-12-06 19:57:54 +01:00
committed by GitHub
parent 4530544bb8
commit 8f2b3cbded
12 changed files with 324 additions and 22 deletions

View File

@@ -28,6 +28,7 @@ use std::{borrow::Cow, future::Future, net::SocketAddr};
use tokio::{net::TcpListener, task::JoinError};
use tracing::info;
use utils::project_git_version;
use utils::sentry_init::{init_sentry, release_name};
project_git_version!(GIT_VERSION);
@@ -45,6 +46,9 @@ async fn main() -> anyhow::Result<()> {
.with_target(false)
.init();
// initialize sentry if SENTRY_DSN is provided
let _sentry_guard = init_sentry(release_name!(), &[]);
let arg_matches = cli().get_matches();
let tls_config = match (