-
Notifications
You must be signed in to change notification settings - Fork 897
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] Fail on unsupported identifiers #4002
Conversation
cc @open-telemetry/configuration-maintainers @TylerHelmuth |
I think we we can accommodate this differently. We can adjust the regular expression definition to define a group for the optional EDIT: I think I misunderstood the goal. You're not saying to fail when an env var is referenced but unset. You're saying fail when an env var substitution expression doesn't quite match the regexp, and thus would be left as a string unless we fail. |
Indeed, that's what I meant :) |
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.
Thanks @mx-psi
FYI, this also closes #3915, but in a different want than suggested in the convo on that issue. |
Updated PR description to also close this one |
Co-authored-by: Tyler Yahn <[email protected]>
docfx is failing because of open-telemetry/semantic-conventions/issues/987 |
Fixes #3981, fixes #3915
Changes
Fail to parse when invalid identifiers are found (this is basically anything that uses the
${...}
syntax but contains an invalid blob in between). The rationale is to allow for changes in a backwards compatible way. Right now it would not be possible to extend the syntax in a non-breaking way to support more sh/POSIX/Bash syntax like the ones here or potentially to support other providers (like we support in the Collector e.g.${file:<something>}
).As an example both #3974 and #3948 would have been nonbreaking had we done this change first (we would go from "fail to parse" to "do something", instead of going from one way of parsing to a different one).
For non-trivial changes, follow the change proposal process.
CHANGELOG.md
file updated for non-trivial changes