| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package internal // import "go.opentelemetry.io/collector/confmap/internal" |
| 5 |
|
| 6 |
// ExpandedValue holds the YAML parsed value and original representation of a value. |
| 7 |
// It keeps track of the original representation to be used by the 'useExpandValue' hook |
| 8 |
// if the target field is a string. We need to keep both representations because we don't know |
| 9 |
// what the target field type is until `Unmarshal` is called. |
| 10 |
type ExpandedValue struct { |
| 11 |
// Value is the expanded value. |
| 12 |
Value any |
| 13 |
// Original is the original representation of the value. |
| 14 |
Original string |
| 15 |
} |