davsclaus opened a new pull request, #30970: URL: https://github.com/apache/camel/pull/30970
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary This PR rewrites 17 texts of camel-metrics: the component description, the `metricRegistry` component option, the 8 endpoint options and the 7 headers. The old header texts all read "Override ... value in URI", and the old option texts repeated the option name ("Value value when using histogram type"). The new texts say which metric type reads each value, what the producer does when it is not set (a meter marks one event, a counter is incremented by one, a histogram or a timer logs a warning and does nothing), that `increment` wins over `decrement`, how the timer `start`/`stop` pair works on one exchange, and which header replaces each option. The `metricRegistry` text now gives the lookup order (the bean named `metricRegistry`, then the only `MetricRegistry` bean, else a new registry with an `Slf4jReporter` at DEBUG every 60 seconds). Sources: the Camel code of the endpoint, the component and the producers, and Dropwizard Metrics 4.2.40 (`MetricRegistry`, `Counter`, `Meter`, `Histogram`, `Timer`, `Gauge`). ### Found, not changed - The `metricsType` path parameter is marked `required`, but the URI may leave it out: `metrics:myName` uses the meter type (`MetricsComponent.DEFAULT_METRICS_TYPE`). The metadata gives no default value for it either. - The `metricRegistry` component option has no `autowired = true`, although the component looks up a `MetricRegistry` bean by name and by type itself in `doInit`. - The doc page says that the endpoint catches all exceptions and logs them at WARN level. The code sets the exception on the exchange instead (`AbstractMetricsProducer.process`). - An `increment` set on the endpoint wins over a `CamelMetricsCounterDecrement` header, so the header cannot make such an endpoint decrement the counter. The new texts describe this behavior. - The 7 headers have an empty display name and an empty label. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (17 texts). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
