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
The [OpenTelemetry Java Instrumentation project](https://github.com/open-telemetry/opentelemetry-java-instrumentation) provides detailed documentation on the configuration properties for [Logback](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/logback/logback-appender-1.0/javaagent) and [Log4j](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/log4j/log4j-appender-2.17/javaagent).
144
144
145
+
### Filtering Metrics
146
+
147
+
_This feature was introduced with version 4.1.0 of the extension._
148
+
149
+
You can filter which metrics are exported to Cloud Logging or Dynatrace by name using the following properties:
|`otel.exporter.cloud-logging.metrics.include.names` or `otel.exporter.dynatrace.metrics.include.names`| A comma-separated list of metric names to be forwarded. This may include a wild card "*" at the end of the name. |
154
+
|`otel.exporter.cloud-logging.metrics.exclude.names` or `otel.exporter.dynatrace.metrics.exclude.names`| A comma-separated list of metric names to be rejected. This may include a wild card "*" at the end of the name. |
155
+
156
+
Note, that the `include` filter is applied before the `exclude` filter.
157
+
That means, if a metric matches both filters, it will be excluded.
158
+
The configuration applies to both the `cloud-logging` and `dynatrace` exporters independently.
0 commit comments