-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[configuration] Allow ${env:ENV} notation for environment variable substitution #3974
[configuration] Allow ${env:ENV} notation for environment variable substitution #3974
Conversation
cc @open-telemetry/configuration-maintainers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in favor of this for an improved compatibility story with the collector env vars substitution syntax. I'm not in favor of expanding the set of prefixes to account for other sources like those supported in the collector since doing so adds complexity to implementations which needs to be justified with user demand / use cases.
Do we want |
I would be in favor of only supporting |
Right, the collector SIG decided in favor of |
There was pushback on the This was discussed in the spec SIG in addition to the file config SIG. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it makes sense to support env:
prefix. Since not having the prefix was the preference of the config working group, i'm ok with moving forward supporting both (as we do today in the collector)
…bstitution (open-telemetry#3974) Fixes open-telemetry#3961 ## Changes Allows for the usage of the `${env:ENV}` syntax in SDK file configuration. This syntax is used in the OpenTelemetry Collector, see https://opentelemetry.io/docs/collector/configuration/#environment-variables for more information. This does not mean that other providers need to be supported; if we want to allow this we would need to reserve that syntax by rejecting `${<provider>:URI}` as invalid, since right now it would be left as-is. * [x] Related issues open-telemetry#3961, part of open-telemetry#3963 --------- Co-authored-by: jack-berg <[email protected]>
Fixes #3961
Changes
Allows for the usage of the
${env:ENV}
syntax in SDK file configuration. This syntax is used in the OpenTelemetry Collector, see https://opentelemetry.io/docs/collector/configuration/#environment-variables for more information.This does not mean that other providers need to be supported; if we want to allow this we would need to reserve that syntax by rejecting
${<provider>:URI}
as invalid, since right now it would be left as-is.${env:ENV}
syntax #3961, part of Alignment with OpenTelemetry Collector configuration #3963