add tracing_flame_filter config option
The previous hardcoded filter `trace,h2=off` isn't appropriate in all cases, it's better to have this be configurable.
This commit is contained in:
parent
cc578d9a67
commit
7d92515b1d
2 changed files with 10 additions and 1 deletions
|
@ -175,6 +175,9 @@ pub(crate) struct Config {
|
|||
#[serde(default)]
|
||||
#[cfg(feature = "perf_measurements")]
|
||||
pub(crate) tracing_flame: bool,
|
||||
#[serde(default = "default_tracing_flame_filter")]
|
||||
#[cfg(feature = "perf_measurements")]
|
||||
pub(crate) tracing_flame_filter: String,
|
||||
#[serde(default)]
|
||||
pub(crate) proxy: ProxyConfig,
|
||||
pub(crate) jwt_secret: Option<String>,
|
||||
|
@ -934,6 +937,9 @@ fn default_pusher_idle_timeout() -> u64 { 15 }
|
|||
|
||||
fn default_max_fetch_prev_events() -> u16 { 100_u16 }
|
||||
|
||||
#[cfg(feature = "perf_measurements")]
|
||||
fn default_tracing_flame_filter() -> String { "trace,h2=off".to_owned() }
|
||||
|
||||
fn default_trusted_servers() -> Vec<OwnedServerName> { vec![OwnedServerName::try_from("matrix.org").unwrap()] }
|
||||
|
||||
fn default_log() -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue