opentelemetry-python-contrib icon indicating copy to clipboard operation
opentelemetry-python-contrib copied to clipboard

pymemcache query sanitization

Open avzis opened this issue 2 years ago • 1 comments
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

avzis avatar Jan 12 '23 15:01 avzis