Skip to content

Commit 496992e

Browse files
authored
[base] add obfuscate_mongodb_string to datadog_agent stub (#17597)
* add obfuscate_mongodb_string to datadog_agent stub * add changelog * fix lint
1 parent 78b5536 commit 496992e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `obfuscate_mongodb_string` to datadog_agent stub

datadog_checks_base/datadog_checks/base/stubs/datadog_agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ def get_process_start_time(self):
124124
def set_process_start_time(self, time):
125125
self._process_start_time = time
126126

127+
def obfuscate_mongodb_string(self, command):
128+
# Passthrough stub: obfuscation implementation is in Go code.
129+
return command
130+
127131

128132
# Use the stub as a singleton
129133
datadog_agent = DatadogAgentStub()

0 commit comments

Comments
 (0)