Skip to content
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

Stop supporting deprecated syntax for config source expansion #5832

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Jan 22, 2025

The expansion of bare config sources is no longer supported.

Strings like $ENV or $include:/path/to/file.yaml will no longer be expanded. Instead, use the ${env:ENV} or ${include:/path/to/file.yaml} syntax. Only two symbols are allowed after $: { and $. The collector will log an error and fail to start if it encounters a bare config source expansion.

This syntax has been deprecated since version 0.105.0.

The reason for this change is aligning with OpenTelemetry Collector upstream, where this syntax has been removed in 0.104.0 version. Long term plan is to do not have the custom config sources in this repository, instead consolidate the functionality with the upstream confmap providers.

@dmitryax dmitryax requested review from a team as code owners January 22, 2025 05:29
@dmitryax dmitryax marked this pull request as draft January 22, 2025 06:44
@dmitryax dmitryax force-pushed the fail-bare-env-vars branch 2 times, most recently from 72b1093 to 3c6ad16 Compare January 22, 2025 17:44
@dmitryax dmitryax marked this pull request as ready for review January 22, 2025 17:44
@dmitryax dmitryax force-pushed the fail-bare-env-vars branch 2 times, most recently from 08de380 to 25a4692 Compare January 24, 2025 05:00
Expansion of bare config sources in the configuration is discontinued.

Strings like `$ENV` or `$include:/path/to/file.yaml` will no longer be expanded. Instead, use the `${env:ENV}` or `${include:/path/to/file.yaml}` syntax. There are only two symbols allowed after `$`: `{` and `$`. The collector will log an error and fail to start if it encounters a bare config source.
@dmitryax
Copy link
Contributor Author

dmitryax commented Jan 26, 2025

3 unrelated tests are still failing. Submitted separate PRs to fix them:

@dmitryax dmitryax merged commit 17938fa into main Jan 26, 2025
262 of 265 checks passed
@dmitryax dmitryax deleted the fail-bare-env-vars branch January 26, 2025 06:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants