|
13 | 13 | # NOTE: With the exception of env var substitution syntax, SDKs ignore environment variables |
14 | 14 | # when interpreting config files. For example, if "disabled: ${OTEL_SDK_DISABLED:-false}" |
15 | 15 | # is replaced with "disabled: false", then setting the env var OTEL_SDK_DISABLED will have |
16 | | -# no effect. See https://opentelemetry.io/docs/specs/otel/configuration/file-configuration/ |
| 16 | +# no effect. See https://opentelemetry.io/docs/specs/otel/configuration/data-model/#file-based-configuration-model |
17 | 17 | # for more information. The following spec defined env vars are NOT referenced and are thus |
18 | 18 | # ignored: |
19 | 19 | # |
@@ -143,6 +143,22 @@ tracer_provider: |
143 | 143 | local_parent_not_sampled: |
144 | 144 | # Configure sampler to be always_off. |
145 | 145 | always_off: {} |
| 146 | + # Uncomment to configure the rule_based_routing sampler from https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/samplers |
| 147 | + # to drop spans to spring actuator endpoints. |
| 148 | + # Configure the parent_based sampler's root sampler to be rule_based_routing sampler. |
| 149 | + # root: |
| 150 | + # rule_based_routing: |
| 151 | + # # Fallback to the always_on sampler if the criteria is not met. |
| 152 | + # fallback_sampler: |
| 153 | + # always_on: |
| 154 | + # # Only apply to SERVER spans. |
| 155 | + # span_kind: SERVER |
| 156 | + # rules: |
| 157 | + # # Drop spans where url.path matches the regex /actuator.* (i.e. spring boot actuator endpoints). |
| 158 | + # - action: DROP |
| 159 | + # attribute: url.path |
| 160 | + # pattern: /actuator.* |
| 161 | + |
146 | 162 |
|
147 | 163 | # Configure meter provider. |
148 | 164 | meter_provider: |
@@ -256,8 +272,11 @@ instrumentation: |
256 | 272 | java: |
257 | 273 | common: |
258 | 274 | default-enabled: ${OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED:-true} |
| 275 | + # Configuration logback-appender instrumentation. Properties adapted from: |
| 276 | + # https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/java-util-logging/javaagent |
259 | 277 | java-util-logging: |
260 | 278 | enabled: ${OTEL_INSTRUMENTATION_JAVA_UTIL_LOGGING_ENABLED:-true} |
| 279 | + experimental-log-attributes: ${OTEL_INSTRUMENTATION_LOGBACK_APPENDER_EXPERIMENTAL_LOG_ATTRIBUTES:-false} |
261 | 280 | # Configuration logback-appender instrumentation. Properties adapted from: |
262 | 281 | # https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/logback/logback-appender-1.0/javaagent |
263 | 282 | logback-appender: |
|
0 commit comments