dd-trace-java
dd-trace-java copied to clipboard
Update BsonScrubber34.java
[inst][mongodb] Disable obfuscation for findAndModify and commit commands
What Does This Do
findAndModify and commit commands in MongoDB are currently having their collection names obfuscated, unlike other commands like find, count, and create. This change disables obfuscation for these commands to maintain consistency in collection name visibility across all MongoDB operations.
Motivation
This improvement will help users better monitor and debug their MongoDB operations by ensuring collection names are visible in traces for all command types, making the behavior consistent across different MongoDB operations.
Additional Notes
The change modifies the BsonScrubber34.java file to add findAndModify and commit to the list of commands that should not be obfuscated.
Contributor Checklist
- [x] Format the title according to the contribution guidelines
- [x] Labels to add:
type:enhancementandinst:mongodb - [x] No linking keywords used that would auto-close issues
- [ ] No CODEOWNERS file update needed (no file additions/moves/deletions)
- [ ] No documentation update needed (no new configuration changes)