Skip to content

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 Enhancements and improvements inst: mongodb MongoDB instrumentation tag: community Community contribution labels Jun 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

This pull request has been marked as stale because it has not had activity over the past quarter. It will be closed in 7 days if no further activity occurs. Feel free to reopen the PR if you are still working on it.

@github-actions github-actions bot added the tag: stale Stale pull requests label Sep 1, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2025

This pull request has been closed because it has not had activity over the past quarter. Feel free to reopen the PR if you are still working on it.

@github-actions github-actions bot closed this Oct 1, 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 tag: stale Stale pull requests type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants