Skip to content

Commit

Permalink
doc(redis instrumentation): Use latest options in readme (#1058)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
miry and fbogsany authored Dec 8, 2021
1 parent 437a8d1 commit 4216a55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions instrumentation/redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 4216a55

Please sign in to comment.