#[non_exhaustive]pub struct Config {
pub exclude: Prefixes,
pub exclude_rooted: Prefixes,
}Expand description
Settings for a Registry. Construct with Config::new and chain the
with_* setters, then hand it to Registry::new.
Every field here is about collection; the publishing knobs (origin,
interval, node, …) live on the moq-stats producer config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exclude: PrefixesPrefixes whose broadcasts are not tracked: a path at or beneath one gets an
empty handle whose bumps no-op. A publisher excludes its own stats subtree
(.stats) this way, breaking the stats-of-stats feedback loop. Empty
(the default) tracks everything.
exclude_rooted: PrefixesPrefixes matched against a path relative to the counting session’s root: a path at or beneath one under that root is not tracked for that session. A relay that presents each root’s stats under the root excludes that subtree this way. Empty (the default) excludes nothing.
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_exclude(self, prefix: Prefix) -> Self
pub fn with_exclude(self, prefix: Prefix) -> Self
Add a prefix to exclude from tracking, with its subtree. May be chained to exclude several.
Sourcepub fn with_exclude_rooted(self, prefix: Prefix) -> Self
pub fn with_exclude_rooted(self, prefix: Prefix) -> Self
Add a prefix to exclude under each session’s root. May be chained to
exclude several. See Self::exclude_rooted.