Skip to content

Commit b3da55a

Browse files
authored
[mongo] include explain operations in samples (#19450)
* include explain operations in samples * add changelog
1 parent fd08ef9 commit b3da55a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

mongo/changelog.d/19450.added

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include explain operations in MongoDB activity samples.

mongo/datadog_checks/mongo/dbm/operation_samples.py

-4
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ def _should_include_operation(self, operation: dict, databases_monitored: List[s
189189
# the replica set members and to discover additional members of a replica set.
190190
self._check.log.debug("Skipping hello operation: %s", operation)
191191
return False
192-
if "explain" in command:
193-
# Skip explain operations as explain cannot explain itself
194-
self._check.log.debug("Skipping explain operation: %s", operation)
195-
return False
196192

197193
return True
198194

0 commit comments

Comments
 (0)