Skip to content

Commit

Permalink
Extend the result with extended pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
titaneric committed Dec 23, 2024
1 parent 057456d commit 6af30a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transforms/log_to_metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,7 @@ fn render_tag_into(
Ok(value_s) => {
let expanded_pairs = pair_expansion(key_s, value_s, static_tags, dynamic_tags)
.map_err(|_| TransformError::PairExpansionError)?;

for (key, value) in expanded_pairs {
result.insert(key, TagValue::Value(value));
}
result.extend(expanded_pairs);
}
Err(TransformError::TemplateRenderingError(value_error)) => {
emit!(crate::internal_events::TemplateRenderingError {
Expand Down

0 comments on commit 6af30a4

Please sign in to comment.