[configuration] Fail on unsupported identifiers#4002
[configuration] Fail on unsupported identifiers#4002reyang merged 7 commits intoopen-telemetry:mainfrom
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 :) |
|
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 <MrAlias@users.noreply.github.com>
|
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.mdfile updated for non-trivial changes