docs(readme): fix resource providers property docs (#5135)

This commit is contained in:
Bruno Medeiros 2023-02-05 00:07:08 +08:00 committed by GitHub
parent 249d09747f
commit cdf13a7c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -230,15 +230,15 @@ you can enable / disable one or more of them by using the following configuratio
| System property | Environment variable | Description | | System property | Environment variable | Description |
|---------------------------------------|---------------------------------------|---------------------------------------------------------------------------------------------| |---------------------------------------|---------------------------------------|---------------------------------------------------------------------------------------------|
| otel.java.enabled.resource-providers | OTEL_JAVA_ENABLED_RESOURCE_PROVIDERS | Enables one or more `ResourceProvider` types. If unset, all resource providers are enabled. | | otel.java.enabled.resource.providers | OTEL_JAVA_ENABLED_RESOURCE_PROVIDERS | Enables one or more `ResourceProvider` types. If unset, all resource providers are enabled. |
| otel.java.disabled.resource-providers | OTEL_JAVA_DISABLED_RESOURCE_PROVIDERS | Disables one or more `ResourceProvider` types | | otel.java.disabled.resource.providers | OTEL_JAVA_DISABLED_RESOURCE_PROVIDERS | Disables one or more `ResourceProvider` types |
The value for these properties must be a comma separated list of fully qualified `ResourceProvider` classnames. The value for these properties must be a comma separated list of fully qualified `ResourceProvider` classnames.
For example, if you don't want to expose the name of the operating system through the resource, you For example, if you don't want to expose the name of the operating system through the resource, you
can pass the following JVM argument: can pass the following JVM argument:
``` ```
-Dotel.java.disabled.resource-providers=io.opentelemetry.sdk.extension.resources.OsResourceProvider -Dotel.java.disabled.resource.providers=io.opentelemetry.sdk.extension.resources.OsResourceProvider
``` ```
## Batch span processor ## Batch span processor