Skip to content

Conversation

@iblancasa
Copy link
Contributor

@iblancasa iblancasa commented Nov 27, 2025

Description

  • Database sanitization now routes to the correct obfuscator based on db.system.name or db.system attribute
  • Added new logic to help detecting URL names and database queries in span names
  • Moved some logic to their own files to help with code readability
  • Remediated situations where the span name resulted in empty string, * or ...

Note this is also related to #43779. After that change, enabling all the db sanitization statements can break span names (they can become ...).

Link to tracking issue

Fixes #44229

Testing

  • Added comprehensive test coverage for the different URL + database combinations

Documentation

  • Updated README with behavior documentation

@iblancasa iblancasa added bug Something isn't working processor/redaction Redaction processor labels Nov 27, 2025
@iblancasa iblancasa changed the title Add system-aware database sanitization to avoid issues with span names [processor/redaction] Add system-aware database sanitization to avoid issues with span names Nov 27, 2025
@iblancasa iblancasa marked this pull request as ready for review November 27, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working processor/redaction Redaction processor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database Sanitization is Overly Aggressive

2 participants