add config item for with_span_events

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-11 20:49:25 +00:00
parent 9790a6edc9
commit e2afaa9f03
2 changed files with 15 additions and 2 deletions

View file

@ -606,6 +606,12 @@ pub struct Config {
#[serde(default = "true_fn", alias = "log_colours")]
pub log_colors: bool,
/// configures the span events which will be outputted with the log
///
/// default: "none"
#[serde(default = "default_log_span_events")]
pub log_span_events: String,
/// OpenID token expiration/TTL in seconds
///
/// These are the OpenID tokens that are primarily used for Matrix account
@ -1958,6 +1964,9 @@ pub fn default_log() -> String {
.to_owned()
}
#[must_use]
pub fn default_log_span_events() -> String { "none".into() }
fn default_notification_push_path() -> String { "/_matrix/push/v1/notify".to_owned() }
fn default_openid_token_ttl() -> u64 { 60 * 60 }