add configuration for sentry to send panics and errors
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
bc58e5002d
commit
d88ab37120
3 changed files with 66 additions and 8 deletions
|
@ -358,6 +358,10 @@ pub struct Config {
|
|||
pub sentry_traces_sample_rate: f32,
|
||||
#[serde(default)]
|
||||
pub sentry_attach_stacktrace: bool,
|
||||
#[serde(default = "true_fn")]
|
||||
pub sentry_send_panic: bool,
|
||||
#[serde(default = "true_fn")]
|
||||
pub sentry_send_error: bool,
|
||||
|
||||
#[serde(default)]
|
||||
pub tokio_console: bool,
|
||||
|
@ -822,6 +826,8 @@ impl fmt::Display for Config {
|
|||
#[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()),
|
||||
("Sentry.io send panics", &self.sentry_send_panic.to_string()),
|
||||
("Sentry.io send errors", &self.sentry_send_error.to_string()),
|
||||
(
|
||||
"Well-known server name",
|
||||
self.well_known
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue