README.md in opentelemetry-instrumentation-mongo-0.20.0 vs README.md in opentelemetry-instrumentation-mongo-0.21.0
- old
+ new
@@ -28,10 +28,24 @@
OpenTelemetry::SDK.configure do |c|
c.use_all
end
```
+### Configuration options
+
+```ruby
+OpenTelemetry::SDK.configure do |c|
+ c.use 'OpenTelemetry::Instrumentation::Mongo', {
+ # Sets how db_statement appears in your traces. The options are:
+ # :obfuscate - (default) query parameters are visible, but values are masked.
+ # :include - query parameters and values are both fully visible.
+ # :omit - db_statement is omitted entirely.
+ db_statement: :include,
+ }
+end
+```
+
## Example
To run the example:
1. Start MongoDB using docker-compose
@@ -55,10 +69,9 @@
Apache 2.0 license. See [LICENSE][license-github] for more information.
[mongo-home]: https://github.com/mongodb/mongo-ruby-driver
[bundler-home]: https://bundler.io
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
-[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
+[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
-