Skip to content

Commit

Permalink
Add writer/handler tests
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode committed Jan 3, 2025
1 parent c2b37b4 commit e113fd7
Show file tree
Hide file tree
Showing 10 changed files with 1,059 additions and 44 deletions.
7 changes: 4 additions & 3 deletions pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1129,11 +1129,12 @@ func (h *Handler) RemoteWriteV2(ctx context.Context, r *storepb.WriteRequestV2)
span, ctx := tracing.StartSpan(ctx, "receive_grpc")
defer span.Finish()

req := tenantWreq{
r.Tenant: r.Timeseries,
wreq := writev2pb.Request{
Timeseries: r.Timeseries,
Symbols: r.Symbols,
}

_, err := h.handleRequestV2(ctx, h.logger, uint64(r.Replica), writev2pb.NewSymbolTableFromSymbols(r.Symbols), req)
_, err := h.handleRequestV2(ctx, h.logger, uint64(r.Replica), &wreq, r.Tenant)
if err != nil {
level.Debug(h.logger).Log("msg", "failed to handle request", "err", err)
}
Expand Down
Loading

0 comments on commit e113fd7

Please sign in to comment.