Preserving Resource Attributes During Span Flattening: A Trace Data Collision Story
A bug in OpenTelemetry led to resource attributes being overwritten. A fix was implemented to maintain data integrity.
During the flattening of OpenTelemetry data, a bug caused resource attributes to be overwritten by span attributes when they shared the same key. The solution involved prefixing colliding attributes to ensure data integrity. This fix restores trace data accuracy and prevents similar issues in the future.