add config for sentry stacktraces

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-10 20:27:17 +00:00
parent e73aa2aa21
commit db3c718ddc
3 changed files with 7 additions and 0 deletions

View file

@ -356,6 +356,8 @@ pub struct Config {
pub sentry_send_server_name: bool,
#[serde(default = "default_sentry_traces_sample_rate")]
pub sentry_traces_sample_rate: f32,
#[serde(default)]
pub sentry_attach_stacktrace: bool,
#[serde(default)]
pub tokio_console: bool,
@ -819,6 +821,7 @@ impl fmt::Display for Config {
("Sentry.io send server_name in logs", &self.sentry_send_server_name.to_string()),
#[cfg(feature = "sentry_telemetry")]
("Sentry.io tracing sample rate", &self.sentry_traces_sample_rate.to_string()),
("Sentry.io attach stacktrace", &self.sentry_attach_stacktrace.to_string()),
(
"Well-known server name",
self.well_known