opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
pymemcache query sanitization
trafficstars
Description
Added a query sanitizer to the Pymemcache instrumentation. Default False, can be enabled with sanitize_query = True
This will allow users to sanitize the query.
PymemcacheInstrumentor().instrument(sanitize_query=True)
Fixes #1546
How Has This Been Tested?
- [x] Original tests remained un-changed, and they will validate the original queries.
- [x] Added a test that validates a sanitized query.
Does This PR Require a Core Repo Change?
- [x] No.
Checklist:
- [x] Changelogs have been updated
- [x] Unit tests have been added
- [x] Documentation has been updated