Skip to content

Commit

Permalink
add sanitization environment variable docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danwiltshire committed Feb 23, 2023
1 parent e65b788 commit 0afa55f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ def response_hook(span, instance, response):
client = redis.StrictRedis(host="localhost", port=6379)
client.get("my-key")
Configuration
-------------
Query sanitization
******************
To enable query sanitization with an environment variable, set
``OTEL_PYTHON_INSTRUMENTATION_SANITIZE_REDIS`` to "true".
For example,
::
export OTEL_PYTHON_INSTRUMENTATION_SANITIZE_REDIS="true"
will result in traced queries like "SET ? ?".
API
---
"""
Expand Down

0 comments on commit 0afa55f

Please sign in to comment.