Omar Atie created CAMEL-24558:
---------------------------------
Summary: Add unconsumed property warning for
camel.aiObservability.* in BaseMainSupport
Key: CAMEL-24558
URL: https://issues.apache.org/jira/browse/CAMEL-24558
Project: Camel
Issue Type: New Feature
Reporter: Omar Atie
h2. Background
During review of apache/camel PR #25507, Claus Ibsen noted that every other
Camel Main configuration group logs a warning when properties are loaded but
not consumed. The aiObservability group was auto-configured but no
corresponding "Property not auto-configured: camel.aiObservability.{}={}"
warning block was added.
h2. Problem
Typos in application.properties (e.g. camel.aiObservability.enable,
camel.aiObservabilty.enabled) may fail silently without the same operator
feedback other config groups provide.
h2. Proposed scope
* In BaseMainSupport, after aiObservability auto-configuration, add
unconsumed-property warning for leftover aiObservabilityProperties entries
(same pattern as camel.health, camel.opentelemetry2, camel.errorRegistry, etc.)
* Add/update unit test in AiObservabilityConfigurationPropertiesTest or
BaseMainSupport test if applicable
h2. References
* Parent: CAMEL-23861
* apache/camel PR #25507 review (davsclaus, non-blocking suggestion)
* core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
(~lines 1745–1864)
h2. Acceptance criteria
* Unknown camel.aiObservability.* keys log WARN with "Property not
auto-configured"
* Valid camel.aiObservability.enabled is consumed without warning
* Behavior consistent with other Main config groups
* Test coverage for typo/unknown key scenario
--
This message was sent by Atlassian Jira
(v8.20.10#820010)