[processor/tailsampling] Add gated tail storage extension support#47331
Merged
andrzej-stencel merged 8 commits intoApr 13, 2026
Conversation
Add an extension-backed tail storage path behind a feature gate while preserving in-memory default behavior and validating tail_storage config. Include processor/config tests and documentation for enabling the feature gate. Assisted-by: ChatGPT 5.3-codex Made-with: Cursor
jmacd
approved these changes
Apr 8, 2026
| // TailStorageID specifies an optional tail storage extension to use for buffering spans. | ||
| // If not set, in-memory tail storage is used. | ||
| // It is behind feature gate `processor.tailsamplingprocessor.tailstorageextension`. | ||
| TailStorageID *component.ID `mapstructure:"tail_storage"` |
Contributor
There was a problem hiding this comment.
I think this should probably be Optional[component.ID]?
Contributor
Author
There was a problem hiding this comment.
Interestingly every component.ID in various config.go in contrib and collector repo seems to be using *component.ID, not configoptional.Optional[component.ID]. Upon further digging I found open-telemetry/opentelemetry-collector#13822 . Let's say when this is resolved, someone could clean up all the *component.ID usages once and for all?
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
edmocosta
reviewed
Apr 10, 2026
edmocosta
approved these changes
Apr 10, 2026
AndrewCharlesHay
pushed a commit
to AndrewCharlesHay/opentelemetry-collector-contrib
that referenced
this pull request
Apr 23, 2026
…en-telemetry#47331) #### Description Add a first-step tail storage extension integration for tailsampling so span buffering can be backed by an extension implementation. This keeps the current in-memory behavior as the default and gates extension-backed `tail_storage` configuration behind `processor.tailsamplingprocessor.tailstorageextension` while the interface is still evolving. There should be no behavior change introduced by this PR. #### Link to tracking issue Part of open-telemetry#42326 #### Testing - `make test` (in `processor/tailsamplingprocessor`) - `make lint` (in `processor/tailsamplingprocessor`) - `make chlog-validate` (repo root) - Added/updated unit tests for config validation and extension integration paths #### Documentation - Updated `processor/tailsamplingprocessor/README.md` with feature-gate requirements for `tail_storage` - Added `.chloggen/tailsamplingprocessor-tail-storage-extension.yaml` Made with [Cursor](https://cursor.com) --------- Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
gracewehner
pushed a commit
to gracewehner/opentelemetry-collector-contrib
that referenced
this pull request
Apr 29, 2026
…en-telemetry#47331) #### Description Add a first-step tail storage extension integration for tailsampling so span buffering can be backed by an extension implementation. This keeps the current in-memory behavior as the default and gates extension-backed `tail_storage` configuration behind `processor.tailsamplingprocessor.tailstorageextension` while the interface is still evolving. There should be no behavior change introduced by this PR. #### Link to tracking issue Part of open-telemetry#42326 #### Testing - `make test` (in `processor/tailsamplingprocessor`) - `make lint` (in `processor/tailsamplingprocessor`) - `make chlog-validate` (repo root) - Added/updated unit tests for config validation and extension integration paths #### Documentation - Updated `processor/tailsamplingprocessor/README.md` with feature-gate requirements for `tail_storage` - Added `.chloggen/tailsamplingprocessor-tail-storage-extension.yaml` Made with [Cursor](https://cursor.com) --------- Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
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.
Description
Add a first-step tail storage extension integration for tailsampling so span buffering can be backed by an extension implementation.
This keeps the current in-memory behavior as the default and gates extension-backed
tail_storageconfiguration behindprocessor.tailsamplingprocessor.tailstorageextensionwhile the interface is still evolving.There should be no behavior change introduced by this PR.
Link to tracking issue
Part of #42326
Testing
make test(inprocessor/tailsamplingprocessor)make lint(inprocessor/tailsamplingprocessor)make chlog-validate(repo root)Documentation
processor/tailsamplingprocessor/README.mdwith feature-gate requirements fortail_storage.chloggen/tailsamplingprocessor-tail-storage-extension.yamlMade with Cursor