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

@fatmcgav fatmcgav requested a review from a team as a code owner June 22, 2026 15:23
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 22, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: fatmcgav / name: Gavin Williams (983c090)

…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.
@fatmcgav fatmcgav force-pushed the feat-collector-b64-encoded-config branch from 9df7eff to 983c090 Compare June 23, 2026 09:56
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