opentelemetry-collector/config
Pablo Baeyens d1a5e5abb8
[configoptional] Add GetOrInsertDefault method (#13859)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Adds `GetOrInsertDefault` method to `configoptional.Optional`. Uses it
in tests.

We originally did not do this because we only had use cases for this in
tests. However #13856 shows that this is useful in programmatic use
cases as well.

#### Link to tracking issue

Fixes #13856
2025-09-18 15:46:49 +00:00
..
configauth fix(deps): update module google.golang.org/grpc to v1.75.1 (#13848) 2025-09-16 13:12:04 +00:00
configcompression [chore] pin gomods to go 1.24.0 (#13824) 2025-09-11 15:56:07 +00:00
configgrpc Bump TPM dependency (#13855) 2025-09-17 19:54:28 +00:00
confighttp Bump TPM dependency (#13855) 2025-09-17 19:54:28 +00:00
configmiddleware fix(deps): update module google.golang.org/grpc to v1.75.1 (#13848) 2025-09-16 13:12:04 +00:00
confignet [chore] pin gomods to go 1.24.0 (#13824) 2025-09-11 15:56:07 +00:00
configopaque [chore] pin gomods to go 1.24.0 (#13824) 2025-09-11 15:56:07 +00:00
configoptional [configoptional] Add GetOrInsertDefault method (#13859) 2025-09-18 15:46:49 +00:00
configretry [chore] pin gomods to go 1.24.0 (#13824) 2025-09-11 15:56:07 +00:00
configtelemetry [chore] pin gomods to go 1.24.0 (#13824) 2025-09-11 15:56:07 +00:00
configtls Bump TPM dependency (#13855) 2025-09-17 19:54:28 +00:00