luigidemasi opened a new pull request, #29806: URL: https://github.com/apache/camel/pull/29806
Semantic assessments currently expose local monitoring snapshots but cannot feed an application's Micrometer registry directly. This adds an optional `MicrometerSemanticMetrics` listener to `camel-semantic`, explicitly registered with the existing registry. It counts completed members once, records individual execution durations in timers, preserves typed result distributions (including signed fractional scores), and exports supported expert-published scalar gauges. The listener bounds populations and answer labels, exposes collection loss/errors, invalidates unavailable gauges, and removes its meters on stop without closing the application registry. Micrometer remains optional; an isolated-JVM regression verifies that ordinary semantic evaluation works without it. The language guide documents registration, ownership, metric semantics, bounds, resets, exemplars and PromQL queries, with its generated catalog copy updated. This is the shared exporter portion of [CAMEL-25648](https://issues.apache.org/jira/browse/CAMEL-25648). Runtime integration is deliberately follow-up work; this PR does not complete the whole issue: - Camel Main registration and the management metrics endpoint example. - Spring Boot starter/Actuator integration and example. - Camel Quarkus Semantic extension/integration, JVM and native validation. - Equivalent runnable examples exercised against a real Prometheus server in all three runtimes. Validation: - `camel-semantic`: 439 tests passed, no failures or skips, including 12 new exporter tests. - Prometheus registry exposition, real direct/batch evaluations with audit disabled, coexistence with local monitoring, cardinality limits, lifecycle reset, and registry failure recovery are covered. - Full repository `mvnd clean install -DskipTests`: passed (722 modules). Formatting and generated documentation are included. - Antora validation of commit `d3f02b6b5612`: passed. Runtime endpoint integration, a live Prometheus server and Quarkus native execution are outside this PR's validation scope. No Jira state was changed. Generated by Codex via /oss-fix-issue (AI-generated), on behalf of @luigidemasi. -- 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]
