You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+4-37Lines changed: 4 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,55 +77,22 @@ ruby application.rb
77
77
78
78
### Instrumentation Environment Variables
79
79
80
-
You can use OpenTelemetry Ruby instrumentation environment variables to disable certain instrumentation.
81
-
From [instrumentation-base](https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/opentelemetry-instrumentation-base/v0.22.3/instrumentation/base/lib/opentelemetry/instrumentation/base.rb#L56-L61):
82
-
> The instrumention class establishes a convention for disabling an instrumentation
83
-
> by environment variable and local configuration. An instrumentation disabled
84
-
> by environment variable will take precedence over local config. The
85
-
> convention for environment variable name is the library name, upcased with
86
-
> '::' replaced by underscores, OPENTELEMETRY shortened to OTEL_{LANG}, and '_ENABLED' appended.
87
-
> For example: OTEL_RUBY_INSTRUMENTATION_SINATRA_ENABLED = false.
80
+
You can use OpenTelemetry Ruby instrumentation environment variables to [disable](https://opentelemetry.io/docs/languages/ruby/libraries/#overriding-configuration-for-specific-instrumentation-libraries-with-environment-variables) or [configure](https://opentelemetry.io/docs/languages/ruby/libraries/#configuring-specific-instrumentation-libraries-with-environment-variables) certain instrumentation, see the [OpenTelemetry Docs](https://opentelemetry.io/docs/languages/ruby/libraries/#use-instrumentation-libraries) for details.
88
81
89
-
For example to disable sinatra instrumentation, you can set `OTEL_RUBY_INSTRUMENTATION_SINATRA_ENABLED` to false through
82
+
For example, to disable sinatra instrumentation and disable mysql2 instrumentation's obfuscation of db.statement:
See more details in [instrumentation-base](https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/opentelemetry-instrumentation-base/v0.22.3/instrumentation/base/lib/opentelemetry/instrumentation/base.rb#L56-L61)
128
-
129
96
## Configuration File
130
97
131
98
On startup, the library looks for the configuration file in the following locations under the application's current working directory:
0 commit comments