add config option for tokio_console runtime enablement

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-26 23:00:33 +00:00
parent bc50034173
commit db288b169e
3 changed files with 61 additions and 20 deletions

View file

@ -355,6 +355,9 @@ pub struct Config {
#[serde(default = "default_sentry_traces_sample_rate")]
pub sentry_traces_sample_rate: f32,
#[serde(default)]
pub tokio_console: bool,
#[serde(flatten)]
#[allow(clippy::zero_sized_map_values)] // this is a catchall, the map shouldn't be zero at runtime
catchall: BTreeMap<String, IgnoredAny>,
@ -855,6 +858,7 @@ impl fmt::Display for Config {
.as_ref()
.map_or("", |url| url.as_str()),
),
("Enable the tokio-console", &self.tokio_console.to_string()),
];
let mut msg: String = "Active config values:\n\n".to_owned();