Skip to content

Conversation

@jack-berg
Copy link
Member

@jack-berg jack-berg commented Dec 5, 2025

When the declarative config create spec was written, declarative config was dependent on the spec as its source of truth for default values for the various properties.

We now directly record expected defaultBehavior and nullBehavior semantics in opentelemetry-configuration.

Updating the spec to tie things back together.

/cc @open-telemetry/configuration-approvers

@jack-berg jack-berg requested review from a team as code owners December 5, 2025 15:42
* If a property is present and the value is null, Create MUST use the
`nullBehavior`, or `defaultBehavior` if `nullBehavior` is not set.
* If a property is required, and not present, Create MUST return an error.
* If a property is not nullable, and present and the value is null, Create MUST
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit: I had to read this twice to understand this bullet. Maybe there's clearer wording but I couldn't come with an improvement myself though 😓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants