Update BsonScrubber34.java #8907
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[inst][mongodb] Disable obfuscation for findAndModify and commit commands
What Does This Do
findAndModify
andcommit
commands in MongoDB are currently having their collection names obfuscated, unlike other commands likefind
,count
, andcreate
. 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 addfindAndModify
andcommit
to the list of commands that should not be obfuscated.Contributor Checklist
type:enhancement
andinst:mongodb