Use specific 'dispatch' log for filter/rule/ruleset/action
@@ -20,9 +20,9 @@ impl Dispatcher {
pub fn dispatch_actions(&self, processed_node: ProcessedNode) -> Result<(), MatcherError> {
match processed_node {
ProcessedNode::Ruleset { rules, name, .. } => {
- let _span = tracing::error_span!("dispatch", ruleset = name.as_str()).entered();
+ let _span = tracing::error_span!("dispatch_ruleset", name = name.as_str()).entered();
for rule in rules.rules {
- let _span = tracing::error_span!("dispatch", rule = rule.name.as_str()).entered();
+ let _span = tracing::error_span!("dispatch_rule", name = rule.name.as_str()).entered();
match rule.status {
ProcessedRuleStatus::Matched => {
debug!("Rule [{}] matched, dispatching actions", rule.name);
@@ -35,7 +35,7 @@ impl Dispatcher {
}
}
ProcessedNode::Filter { nodes, name, .. } => {
- let _span = tracing::error_span!("dispatch", filter = name.as_str()).entered();
+ let _span = tracing::error_span!("dispatch_filter", name = name.as_str()).entered();
for node in nodes {
self.dispatch_actions(node)?;
}
