Files
5d3d5ef49a [configoptional] Allow wrapping scalar values (#15175)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Allow `configoptional.Optional` to wrap scalar values using new
interfaces designed specifically to handle similar wrappers around
scalar values.

Follow up to
https://github.com/open-telemetry/opentelemetry-collector/pull/13524.

---------

Co-authored-by: Jade Guiton <[email protected]>
2026-05-19 13:58:33 +00:00

24 lines
251 B
YAML

struct_with_value:
sub:
foo: bar
struct_null:
sub: null
struct_empty:
sub: {}
struct_absent: {}
int_with_value:
val: 42
int_null:
val: null
int_absent: {}
str_with_value:
val: hello
slice_with_values:
val:
- 1
- 2
- 3