-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Invalid warning Variable substitution using $VAR will be deprecated in favor of ${VAR} and ${env:VAR}, please update $$
#10356
Comments
This is a warning that you need to update your configuration to use the the alternate format, as the configuration you're using for environment variables, For your config, |
@crobert-1 is that in the release notes? When will that be reflected in the documentation? |
Pinging code owners for pkg/ottl: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Actually, I may be wrong here, it may be an incorrect warning. I forgot about the special casing around |
This is a legitimate issue. It's possible |
This is happening bc of
That check needs a better regex - right now it is checking for a string starting with a $, not if it is also a valid env var name. |
@TylerHelmuth and @evan-bradley - Should this issue be moved to |
Ya |
Component(s)
No response
What happened?
Description
When using ottl transform processor with a capture group, the following warning is emitted in the logs:
Steps to Reproduce
Create a transform processor that uses replace pattern with a capture group substitution like this:
Expected Result
No warnings are printed
Actual Result
Collector version
v0.101.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: