feat(collector): support inline Base64 config via OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT#2409
Open
fatmcgav wants to merge 1 commit into
Open
Conversation
…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>
One or more co-authors of this pull request were not found. You must specify co-authors in commit message trailer via: Supported
Alternatively, if the co-author should not be included, remove the Please update your commit message(s) by doing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
OPENTELEMETRY_COLLECTOR_CONFIG_CONTENTenvironment variable thataccepts a standard Base64-encoded YAML collector config. The decoded content is
fed into the existing
yamlprovider(yaml:URI scheme), so no new provider isneeded.
Resolution order:
OPENTELEMETRY_COLLECTOR_CONFIG_URI(existing, unchanged — warns if_CONTENTis also set)OPENTELEMETRY_COLLECTOR_CONFIG_CONTENT(new — Base64-decoded YAML)OPENTELEMETRY_COLLECTOR_CONFIG_FILE(deprecated fallback, unchanged)/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