Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunPiduguDD committed Aug 14, 2024
1 parent 91d41d2 commit ead385d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/transforms/remap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,7 @@ where

fn annotate_dropped(&self, event: &mut Event, reason: &str, error: ExpressionError) {
match event {
Event::Log(ref mut log) => {
match log.namespace() {
Event::Log(ref mut log) => match log.namespace() {
LogNamespace::Legacy => {
if let Some(metadata_key) = log_schema().metadata_key() {
log.insert(
Expand All @@ -494,7 +493,7 @@ where
self.dropped_data(reason, error),
);
}
}},
},
Event::Metric(ref mut metric) => {
if let Some(metadata_key) = log_schema().metadata_key() {
metric.replace_tag(format!("{}.dropped.reason", metadata_key), reason.into());
Expand Down

0 comments on commit ead385d

Please sign in to comment.