This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new b9994de91a4 camel-micromemter - Add back constants to be used by the DistributionStatisticConfigFilter b9994de91a4 is described below commit b9994de91a4b553088d9babbecf1afa46ff4ee94 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Mar 4 16:35:57 2024 +0100 camel-micromemter - Add back constants to be used by the DistributionStatisticConfigFilter --- .../org/apache/camel/component/micrometer/MicrometerConstants.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/camel-micrometer/src/main/java/org/apache/camel/component/micrometer/MicrometerConstants.java b/components/camel-micrometer/src/main/java/org/apache/camel/component/micrometer/MicrometerConstants.java index d9008beafe4..a4a1a151d9b 100644 --- a/components/camel-micrometer/src/main/java/org/apache/camel/component/micrometer/MicrometerConstants.java +++ b/components/camel-micrometer/src/main/java/org/apache/camel/component/micrometer/MicrometerConstants.java @@ -68,7 +68,10 @@ public final class MicrometerConstants { public static final String SERVICE_NAME = "serviceName"; public static final String ENDPOINT_NAME = "endpointName"; + // used for distribution statistics config filter public static final Predicate<Meter.Id> CAMEL_METERS = id -> id.getTag(CAMEL_CONTEXT_TAG) != null; + public static final Predicate<Meter.Id> TIMERS = id -> id.getType() == Meter.Type.TIMER; + public static final Predicate<Meter.Id> DISTRIBUTION_SUMMARIES = id -> id.getType() == Meter.Type.DISTRIBUTION_SUMMARY; public static final Predicate<Meter.Id> ALWAYS = id -> true; private MicrometerConstants() {