From 4216a55be5ad224100f6c2802e8ec5fc04f1e316 Mon Sep 17 00:00:00 2001 From: Michael Nikitochkin Date: Wed, 8 Dec 2021 22:06:19 +0100 Subject: [PATCH] doc(redis instrumentation): Use latest options in readme (#1058) * docs(redis instrumentation): Use latest options in readme There is no option `enable_statement_obfuscation` for `OpenTelemetry::Instrumentation::Redis`. Replace example with option `db_statement` in README. * Cleanup doc Co-authored-by: Francis Bogsanyi --- instrumentation/redis/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/instrumentation/redis/README.md b/instrumentation/redis/README.md index 3522e15c1..161015626 100644 --- a/instrumentation/redis/README.md +++ b/instrumentation/redis/README.md @@ -47,8 +47,10 @@ end OpenTelemetry::SDK.configure do |c| c.use 'OpenTelemetry::Instrumentation::Redis', { # The obfuscation of arguments in the db.statement attribute is enabled by default. - # To disable, set enable_statement_obfuscation to false. - enable_statement_obfuscation: true, + # To include the full query, set db_statement to :include. + # To obfuscate, set db_statement to :obfuscate. + # To omit the attribute, set db_statement to :omit. + db_statement: :include, } end ```