Skip to content
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

feat: add dalli obfuscation for db_statement #1013

Merged
merged 2 commits into from
Nov 12, 2021

Conversation

ericmustin
Copy link
Contributor

Summary

In an attempt to standardize options around database instrumentation db_statement settings, this PR adds the :obfuscate value to dalli ( a memcached client)'s db_statement configuration option. When enabled, it will obfuscate the db.statement span attribute. In practice this simply means dropping the arguments and only including the command, which is relatively low value (since it's already available in the span name) but, for the sake of consistency with the other database instrumentations, this allows users to still capture some level of detail in their db.statement attribute without potentially exposing sensitive information.

Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mwear mwear merged commit a17f05b into open-telemetry:main Nov 12, 2021
schanjr pushed a commit to schanjr/opentelemetry-ruby that referenced this pull request Nov 20, 2021
* initial code complete

* chore: fix tests for sidekiq to support inline lua changes (open-telemetry#1011)

* chore: fix tests for sidekiq to support inline lua changes to redis calls

* chore: add additional sidekiq appraisal

* feat: add dalli obfuscation for db_statement (open-telemetry#1013)

* feat: add dalli obfuscation for db_statement

* chore: linting

* Link to website spec pages (open-telemetry#1018)

Co-authored-by: Matthew Wear <[email protected]>

* Feat: Add custom getters to common (open-telemetry#1006)

Co-authored-by: Matthew Wear <[email protected]>

Co-authored-by: Eric Mustin <[email protected]>
Co-authored-by: Patrice Chalin <[email protected]>
Co-authored-by: Matthew Wear <[email protected]>
Co-authored-by: Robert <[email protected]>
schanjr pushed a commit to schanjr/opentelemetry-ruby that referenced this pull request Nov 20, 2021
* initial code complete

* chore: fix tests for sidekiq to support inline lua changes (open-telemetry#1011)

* chore: fix tests for sidekiq to support inline lua changes to redis calls

* chore: add additional sidekiq appraisal

* feat: add dalli obfuscation for db_statement (open-telemetry#1013)

* feat: add dalli obfuscation for db_statement

* chore: linting

* Link to website spec pages (open-telemetry#1018)

Co-authored-by: Matthew Wear <[email protected]>

* Feat: Add custom getters to common (open-telemetry#1006)

Co-authored-by: Matthew Wear <[email protected]>

Co-authored-by: Eric Mustin <[email protected]>
Co-authored-by: Patrice Chalin <[email protected]>
Co-authored-by: Matthew Wear <[email protected]>
Co-authored-by: Robert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants