pyroscope icon indicating copy to clipboard operation
pyroscope copied to clipboard

Fix: Handle duplicate validation correctly when sanitizing

Open simonswine opened this issue 6 months ago • 0 comments

When replacing dots with underscores, we don't take care of the order of the labels slice, hence our duplicate check can be ineffective.

This change will fix this bug and also will handle the case when both the sanitized and unsanitized label values actually match and reduce them to the sanitized variant.

Discovered when reviewing #4236

simonswine avatar Jun 09 '25 11:06 simonswine