allow tags at dataset creation#1540
Merged
nitisht merged 1 commit intoparseablehq:mainfrom Feb 9, 2026
Merged
Conversation
accept header x-p-dataset-tag in dataset creation request supported values - agent-observability, k8s-observability, database-observability anything else, server will log warn and set as null store this field in stream.json (objectstoremetadata) and logstreammetadata (in memory struct)
Contributor
WalkthroughThis PR introduces dataset tagging support across the log stream infrastructure by adding a Changes
Sequence DiagramsequenceDiagram
participant Client
participant HTTPHandler as HTTP Handler
participant StreamCreation as Stream Creation
participant Storage as Storage Layer
Client->>HTTPHandler: PUT /stream with DATASET_TAG header
HTTPHandler->>HTTPHandler: Parse PutStreamHeaders<br/>(extract dataset_tag)
HTTPHandler->>StreamCreation: create_update_stream<br/>(dataset_tag)
StreamCreation->>StreamCreation: LogStreamMetadata::new<br/>(with dataset_tag)
StreamCreation->>Storage: Serialize ObjectStoreFormat<br/>(with dataset_tag)
Storage->>Storage: Persist metadata to storage
Storage-->>StreamCreation: Success
StreamCreation-->>HTTPHandler: Stream created
HTTPHandler-->>Client: 200 OK
Note over Storage: On recovery/restart
Storage->>StreamCreation: Load ObjectStoreFormat<br/>(with dataset_tag)
StreamCreation->>StreamCreation: Restore LogStreamMetadata<br/>(with dataset_tag)
StreamCreation->>StreamCreation: Stream available with<br/>dataset_tag preserved
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
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.
accept header x-p-dataset-tag in dataset creation request
supported values - agent-observability, k8s-observability, database-observability
anything else, server will log warn and set as null
store this field in stream.json (objectstoremetadata) and logstreammetadata (in memory struct)
Summary by CodeRabbit
Release Notes