opentelemetry-collector/confmap/provider/envprovider
Antoine Toulme eaa1a6e812
[chore] Prepare release v1.38.0/v0.132.0 (#13623)
I am opening this PR as a copy of #13620

---------

Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
2025-08-12 05:17:22 +00:00
..
Makefile [confmap] Split converters and providers into their own modules (#9461) 2024-02-12 15:55:22 +01:00
README.md [envprovider] Add README file (#12499) 2025-02-26 16:55:31 +00:00
generated_package_test.go [envprovider] Add README file (#12499) 2025-02-26 16:55:31 +00:00
go.mod [chore] Prepare release v1.38.0/v0.132.0 (#13623) 2025-08-12 05:17:22 +00:00
go.sum Update module github.com/go-viper/mapstructure/v2 to v2.4.0 (#13392) 2025-07-15 10:33:09 +00:00
metadata.yaml [chore] Generate codecov badge for all READMEs (#12962) 2025-05-05 15:26:50 +00:00
provider.go [chore]: enable-all rules from go-critic (#13433) 2025-07-24 10:34:03 +00:00
provider_test.go [chore] update references to batch processor (#13406) 2025-07-28 18:28:57 +00:00

README.md

Environment Variable Provider

Status
Stability stable
Distributions core, contrib, k8s, otlp
Issues Open issues Closed issues

Usage

The scheme for this provider is env. Usage looks like the following:

env:NAME_OF_ENVIRONMENT_VARIABLE

To use default values when the environment variable has not been set, you can include a suffix to specify it:

env:NAME_OF_ENVIRONMENT_VARIABLE:-default_value

Environment variables must match the following regular expression. That is, they must be at least one character, start with a letter or underscore, and can only include letters, numbers, and underscores.

^[a-zA-Z_][a-zA-Z0-9_]*$