Skip to content

Update BsonScrubber34.java #8907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kosedogukan
Copy link

[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

  • Format the title according to the contribution guidelines
  • Labels to add: type:enhancement and inst:mongodb
  • 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)

Want to disable obfuscation from findAndModify and commit commands of mongodb
@kosedogukan kosedogukan requested a review from a team as a code owner June 1, 2025 21:22
@PerfectSlayer PerfectSlayer added type: enhancement inst: mongodb MongoDB instrumentation tag: community Community contribution labels Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inst: mongodb MongoDB instrumentation tag: community Community contribution type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants