Skip to content

Commit 4216a55

Browse files
miryfbogsany
andauthored
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 <francis.bogsanyi@shopify.com>
1 parent 437a8d1 commit 4216a55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

instrumentation/redis/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ end
4747
OpenTelemetry::SDK.configure do |c|
4848
c.use 'OpenTelemetry::Instrumentation::Redis', {
4949
# The obfuscation of arguments in the db.statement attribute is enabled by default.
50-
# To disable, set enable_statement_obfuscation to false.
51-
enable_statement_obfuscation: true,
50+
# To include the full query, set db_statement to :include.
51+
# To obfuscate, set db_statement to :obfuscate.
52+
# To omit the attribute, set db_statement to :omit.
53+
db_statement: :include,
5254
}
5355
end
5456
```

0 commit comments

Comments
 (0)