mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
<!--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]>
24 lines
251 B
YAML
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
|