Repository navigation
feat(config): add built-in materialization adapters - #158
Merged
Merged
Conversation
Add a parser-neutral built-in materializer that validates backend field schemas and applies defaults matching the public FileLogger, UniqueFileLogger, MemoryLogger, MdbxLogger, OTLP, and Prometheus configurations. Keep optional backends and callback-only payload exporters fail-closed, and preserve side-effect-free plan materialization with nested format validation.
Merge nested OTLP and Prometheus format defaults recursively, preserve user values, and reject unknown nested label fields. Rebase backend diagnostics to the document logger index and carry required callback bindings in materialized plans so payload backends remain data-only until instantiation.
Accept and validate PrometheusPayloadLogger emit_on_log and emit_on_wait fields, preserving explicit values while materializing the documented defaults. Document the relative diagnostic path contract for backend adapters.
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\n- add side-effect-free built-in configuration validation/materialization\n- apply defaults matching public file, unique-file, memory, MDBX, OTLP, and Prometheus Configs\n- validate nested OTLP/Prometheus format objects and reject unavailable/callback-only backends explicitly\n\n## Verification\n- configuration_contract_test\n- full C++11 Release CTest: 62/62 passed\n- git diff --check\n\nNo parser frontend, logger instantiation, or runtime side effects are introduced.