-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[connector/datadog] Support obfuscating sql queries in APM stats #35401
Conversation
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
cc @jackgopack4 for context |
@@ -158,3 +176,20 @@ func (c *traceToMetricConnectorNative) run() { | |||
} | |||
} | |||
} | |||
|
|||
// fork of https://github.com/DataDog/datadog-agent/blob/7642cf1aa659f82744038602044a8a00aa1a0dfb/pkg/trace/agent/obfuscate.go#L109 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this sustainable long-term? Is it possible we could add this as a function to pkg/obfuscate
instead so that it doesn't get forgotten when obfuscate folks make changes to their obfuscateStatsGroup calculations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are already having to import pkg/obfuscate; I feel like we could add a function there that takes the c.obfuscator
as a parameter instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
submitted a PR to modify the signature of this function in trace agent: DataDog/datadog-agent#32064
closing in favor of DataDog/datadog-agent#32750 |
Description:
Support obfuscating sql queries in APM stats in DD connector
This simulates the same in trace agent: https://github.com/DataDog/datadog-agent/blob/7642cf1aa659f82744038602044a8a00aa1a0dfb/pkg/trace/agent/obfuscate.go#L109