Repository navigation
fix(write): preserve iterator records with default tags - #742
Open
pcbeingused33 wants to merge 2 commits into
Open
pcbeingused33 wants to merge 2 commits into
pcbeingused33 wants to merge 2 commits into
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #742 +/- ##
==========================================
- Coverage 90.76% 90.73% -0.03%
==========================================
Files 41 41
Lines 3595 3584 -11
==========================================
- Hits 3263 3252 -11
Misses 332 332 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…default-tags # Conflicts: # CHANGELOG.md
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.
Proposed Changes
The default-tag pass consumes generator records before the writer can serialize them. The async writer can then return success without making a POST.
Apply all configured tags to each record as the writer consumes its iterable. The sync, async, and batching writers use the resulting iterable, including when an iterator is nested inside a list.
The regression tests mock the write service and verify that async, synchronous, and batching writes send both points with both default tags. Before the fix, none of the three modes sent a request.
Checklist
This change was prepared with the assistance of an AI coding assistant.