From 6cca665c971b41e75e272df8f471731549c60e4d Mon Sep 17 00:00:00 2001 From: Adriano Machado <60320+ammachado@users.noreply.github.com> Date: Sun, 13 Sep 2026 19:56:19 -0400 Subject: [PATCH] Reword micrometer shutdown-filters Javadoc to avoid mis-nested AsciiDoc The Javadoc of camel.metrics.log-metrics-on-shutdown-filters is copied into the generated starters/micrometer.adoc table. Its two `*` characters (`*` and `camel.exchanges.*`) pair up as AsciiDoc constrained bold across the monospace spans, so Asciidoctor emits .... The website's HTML-to-Markdown step cannot recover from that nesting and skips the page, leaving starters/micrometer.md missing. Reword the sentence so only one `*` remains. A passthrough (+...+) is avoided because it would also show up literally in the Spring configuration-metadata tooltip. See apache/camel-website#1746 _Claude Code on behalf of Adriano Machado (@ammachado)_ _This was generated by an AI agent and may contain inaccuracies. Please verify before relying on it._ --- .../camel-micrometer-starter/src/main/docs/micrometer.json | 2 +- .../springboot/metrics/CamelMetricsConfiguration.java | 4 ++-- docs/spring-boot/modules/ROOT/pages/starters/micrometer.adoc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components-starter/camel-micrometer-starter/src/main/docs/micrometer.json b/components-starter/camel-micrometer-starter/src/main/docs/micrometer.json index f6073d988e5..4a38a059883 100644 --- a/components-starter/camel-micrometer-starter/src/main/docs/micrometer.json +++ b/components-starter/camel-micrometer-starter/src/main/docs/micrometer.json @@ -101,7 +101,7 @@ { "name": "camel.metrics.log-metrics-on-shutdown-filters", "type": "java.lang.String", - "description": "List of metrics (comma separated) to log when application is shutting down. You can use `*` character to log any metrics containing the wildcard, for example `camel.exchanges.*` (default to all metrics available).", + "description": "List of metrics (comma separated) to log when application is shutting down. You can use a wildcard to log any metrics matching a pattern, for example `camel.exchanges.*` (default to all metrics available).", "sourceType": "org.apache.camel.component.micrometer.springboot.metrics.CamelMetricsConfiguration" }, { diff --git a/components-starter/camel-micrometer-starter/src/main/java/org/apache/camel/component/micrometer/springboot/metrics/CamelMetricsConfiguration.java b/components-starter/camel-micrometer-starter/src/main/java/org/apache/camel/component/micrometer/springboot/metrics/CamelMetricsConfiguration.java index 888edd5601e..62a8df3fa3e 100644 --- a/components-starter/camel-micrometer-starter/src/main/java/org/apache/camel/component/micrometer/springboot/metrics/CamelMetricsConfiguration.java +++ b/components-starter/camel-micrometer-starter/src/main/java/org/apache/camel/component/micrometer/springboot/metrics/CamelMetricsConfiguration.java @@ -102,8 +102,8 @@ public class CamelMetricsConfiguration { private boolean logMetricsOnShutdown = false; /** - * List of metrics (comma separated) to log when application is shutting down. You can use `*` character to log any - * metrics containing the wildcard, for example `camel.exchanges.*` (default to all metrics available). + * List of metrics (comma separated) to log when application is shutting down. You can use a wildcard to log any + * metrics matching a pattern, for example `camel.exchanges.*` (default to all metrics available). */ private String logMetricsOnShutdownFilters; diff --git a/docs/spring-boot/modules/ROOT/pages/starters/micrometer.adoc b/docs/spring-boot/modules/ROOT/pages/starters/micrometer.adoc index 54d74e42a2e..06b08147ce0 100644 --- a/docs/spring-boot/modules/ROOT/pages/starters/micrometer.adoc +++ b/docs/spring-boot/modules/ROOT/pages/starters/micrometer.adoc @@ -39,7 +39,7 @@ The starter supports 18 options, which are listed below. | camel.metrics.enable-route-event-notifier | Set whether to enable the MicrometerRouteEventNotifier for capturing metrics on the total number of routes and total number of routes running. | true | Boolean | camel.metrics.enable-route-policy | Set whether to enable the MicrometerRoutePolicyFactory for capturing metrics on route processing times. | true | Boolean | camel.metrics.log-metrics-on-shutdown | Log metrics when application is shutting down. (default, `false`). | false | Boolean -| camel.metrics.log-metrics-on-shutdown-filters | List of metrics (comma separated) to log when application is shutting down. You can use `*` character to log any metrics containing the wildcard, for example `camel.exchanges.*` (default to all metrics available). | | String +| camel.metrics.log-metrics-on-shutdown-filters | List of metrics (comma separated) to log when application is shutting down. You can use a wildcard to log any metrics matching a pattern, for example `camel.exchanges.*` (default to all metrics available). | | String | camel.metrics.log-metrics-on-shutdown-format | Format used to log metrics when application is shutting down. Either json (default) or prometheus format. | | String | camel.metrics.naming-strategy | Controls the name style to use for metrics. Default = uses micrometer naming convention. Legacy = uses the classic naming style (camelCase) | default | String | camel.metrics.route-policy-exclude-pattern | Pattern to exclude routes (by id) to capture. Multiple route ids can be separated by comma. | | String