Skip to content

feat(collector): support inline Base64 config via OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT#2409

Open
fatmcgav wants to merge 1 commit into
open-telemetry:mainfrom
fatmcgav:feat-collector-b64-encoded-config
Open

feat(collector): support inline Base64 config via OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT#2409
fatmcgav wants to merge 1 commit into
open-telemetry:mainfrom
fatmcgav:feat-collector-b64-encoded-config

Conversation

@fatmcgav

Copy link
Copy Markdown

Adds a new OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT environment variable that
accepts a standard Base64-encoded YAML collector config. The decoded content is
fed into the existing yamlprovider (yaml: URI scheme), so no new provider is
needed.

Resolution order:

  1. OPENTELEMETRY_COLLECTOR_CONFIG_URI (existing, unchanged — warns if _CONTENT is also set)
  2. OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT (new — Base64-decoded YAML)
  3. OPENTELEMETRY_COLLECTOR_CONFIG_FILE (deprecated fallback, unchanged)
  4. /opt/collector-config/config.yaml (default)

If Base64 decoding fails an error is logged and the extension falls through to
the next option. NewCollector's signature is unchanged.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

…ECTOR_CONFIG_CONTENT`

Adds a new `OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT` environment variable that
accepts a standard Base64-encoded YAML collector config. The decoded content is
fed into the existing `yamlprovider` (`yaml:` URI scheme), so no new provider is
needed.

Resolution order:
1. `OPENTELEMETRY_COLLECTOR_CONFIG_URI` (existing, unchanged — warns if `_CONTENT` is also set)
2. `OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT` (new — Base64-decoded YAML)
3. `OPENTELEMETRY_COLLECTOR_CONFIG_FILE` (deprecated fallback, unchanged)
4. `/opt/collector-config/config.yaml` (default)

If Base64 decoding fails an error is logged and the extension falls through to
the next option. `NewCollector`'s signature is unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fatmcgav fatmcgav requested a review from a team as a code owner June 22, 2026 15:23
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Missing ID

  • ✅ login: fatmcgav / name: Gavin Williams (9df7eff)
  • ❌ The email address for the commit (9df7eff) is not linked to the GitHub account, preventing the EasyCLA check. Consult this Help Article and GitHub Help to resolve. (To view the commit's email address, add .patch at the end of this PR page's URL.) For further assistance with EasyCLA, please visit our EasyCLA portal and chat with our support bot.

One or more co-authors of this pull request were not found. You must specify co-authors in commit message trailer via:

Co-authored-by: name <email>

Supported Co-authored-by: formats include:

  1. Anything <id+login@users.noreply.github.com> - it will locate your GitHub user by id part.
  2. Anything <login@users.noreply.github.com> - it will locate your GitHub user by login part.
  3. Anything <public-email> - it will locate your GitHub user by public-email part. Note that this email must be made public on Github.
  4. Anything <other-email> - it will locate your GitHub user by other-email part but only if that email was used before for any other CLA as a main commit author.
  5. login <any-valid-email> - it will locate your GitHub user by login part, note that login part must be at least 3 characters long.

Alternatively, if the co-author should not be included, remove the Co-authored-by: line from the commit message.

Please update your commit message(s) by doing git commit --amend and then git push [--force] and then request re-running CLA check via commenting on this pull request:

/easycla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant