write_legacy_attributes

Function write_legacy_attributes 

Source
pub fn write_legacy_attributes(attributes: &mut Annotated<Attributes>)
Expand description

Double writes sentry conventions attributes into legacy attributes.

This achieves backwards compatibility as it allows products to continue using legacy attributes while we accumulate spans that conform to sentry conventions.

This function is called after attribute value normalization (normalize_attribute_values) as it clones normalized attributes into legacy attributes.