CAMEL-24558: Warn on unconsumed camel.aiObservability.* properties in Main - #26056
Merged
davsclaus merged 1 commit intoSep 3, 2026
Conversation
Log leftover aiObservability configuration keys in BaseMainSupport using the same pattern as other Main configuration groups, and add tests for fail-fast behavior, unconsumed property handling, and typo scenarios. Co-authored-by: Cursor Agent <noreply@cursor.com>
atiaomar1978-hub
marked this pull request as ready for review
September 2, 2026 23:56
davsclaus
approved these changes
Sep 3, 2026
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 63 tested, 27 compile-only — current: 63 all testedMaveniverse Scalpel detected 90 affected modules (current approach: 63).
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes CAMEL-24558 by logging a warning for leftover
camel.aiObservability.*keys during Camel Main auto-configuration, matching the existing pattern used bycamel.health,camel.opentelemetry2, and other configuration groups.Problem
Typos such as
camel.aiObservability.enable(instead ofenabled) 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
aiObservabilityPropertiesentries.Testing
Extended
AiObservabilityConfigurationPropertiesTestwith coverage for:autoConfigurationFailFast=falseenabledconsumed while unknownenableremains unconsumedautoConfigurationFailFast=true(default)enable=falseso defaultenabled=truecannot mask accidental binding)ai-observability-unknown.propertiesmvn test -pl core/camel-main -am -Dtest=AiObservabilityConfigurationPropertiesTestReviews
CI note
Fork PR workflows may show action required until a Camel maintainer approves the GitHub Actions run.
AI-generated on behalf of atiaomar1978-hub