Repository navigation
Conversation
…larAppenderV2 Signed-off-by: Bartek Plotka <[email protected]>
Signed-off-by: Bartek Plotka <[email protected]>
…tograms Signed-off-by: Bartek Plotka <[email protected]>
Signed-off-by: Bartek Plotka <[email protected]>
Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
force-pushed
the
arve/bwplotka/rw_receiver_appender_v2-exemplars
branch
from
October 6, 2026 20:27
e72f6c0 to
4ac2a90
Compare
bwplotka
force-pushed
the
bwplotka/rw_receiver_appender_v2
branch
from
October 13, 2026 16:02
b321643 to
fa51d00
Compare
bwplotka
reviewed
Oct 13, 2026
| } | ||
|
|
||
| // FailedExemplarCount returns the number of input exemplars with reported failures. | ||
| func (e *AppendPartialError) FailedExemplarCount() int { |
Member
There was a problem hiding this comment.
I agree with @krajorama - wonder if ExemplarError{err, int (index)} would simplify this code
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.
Custom fanout configurations can report several backend errors for one input exemplar. Subtracting the error count from the input count therefore undercounts the Remote Write 2.0 written-exemplar header.
Make
AppendPartialError.ExemplarErrorsmatch the input exemplar slice: nil entries indicate no reported failure, and non-nil entries retain the causes for that input. Allocate the slice on the first failure, merge fanout errors by position, and count each failed input once. Remove the separate index slice and legacy fallback.Preserve input positions across future-timestamp filtering without modifying caller or backend slices. Validate failure-slice lengths at consumer boundaries, normalize empty partial errors, and update Remote Write, OTLP, scrape, Head, Agent, and test appenders to the same contract.
Regression coverage uses named subtests for overlapping and disjoint fanout failures, sparse failures, ignored duplicates, filtering, malformed lengths, slice ownership, and receiver response counts. Benchmarks cover error creation, aggregation, counting, and filtering with 1 and 1,000 inputs; no performance improvement is claimed.
This accounting correction applies to custom fanout configurations through the Go API. Metadata changes remain in #19912.
Which issue(s) does the PR fix:
Follow-up to #19812, targeting its feature branch. Exemplar changes split from #19912.
Release notes for end users (ALL commits must be considered).
Reviewers should verify clarity and quality.