Skip to main content

merge_log_attributes

Function merge_log_attributes 

Source
fn merge_log_attributes(log: &mut Log, attrs: &[(String, LogAttribute)])
Expand description

Merge attrs into log.attributes, letting existing keys win.

Tracing event fields are already present on the [Log] when the before_send_log hook fires, so we must not overwrite them; this keeps our CI/git metadata as a fallback that enriches (but never masks) the log’s own attributes.