atiaomar1978-hub opened a new pull request, #26056:
URL: https://github.com/apache/camel/pull/26056

   ## Summary
   
   Fixes [CAMEL-24558](https://issues.apache.org/jira/browse/CAMEL-24558) by 
logging a warning for leftover `camel.aiObservability.*` keys during Camel Main 
auto-configuration, matching the existing pattern used by `camel.health`, 
`camel.opentelemetry2`, and other configuration groups.
   
   ## Problem
   
   Typos such as `camel.aiObservability.enable` (instead of `enabled`) were not 
reported in the unconsumed-property warning pass, unlike other Main 
configuration groups.
   
   ## Solution
   
   After GenAI observability auto-configuration in `BaseMainSupport`, emit:
   
   `Property not auto-configured: camel.aiObservability.<key>=<value>`
   
   for any remaining `aiObservabilityProperties` entries.
   
   ## Testing
   
   Extended `AiObservabilityConfigurationPropertiesTest` with coverage for:
   
   - Unknown properties left unconsumed when `autoConfigurationFailFast=false`
   - Known `enabled` consumed while unknown `enable` remains unconsumed
   - Fail-fast exception when `autoConfigurationFailFast=true` (default)
   - Main startup ignores unknown typo properties when fail-fast is disabled 
(using `enable=false` so default `enabled=true` cannot mask accidental binding)
   - Properties-file typo scenario via `ai-observability-unknown.properties`
   
   ```bash
   mvn test -pl core/camel-main -am 
-Dtest=AiObservabilityConfigurationPropertiesTest
   ```
   
   ## Reviews
   
   - Bugbot: no issues found
   - Grok review feedback addressed (stronger typo tests, fail-fast cleanup, 
auto-configured property assertions)
   
   _AI-generated on behalf of atiaomar1978-hub_


-- 
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]

Reply via email to