Skip to content

Commit

Permalink
satellite/metainfo: properly tag batch response size metric
Browse files Browse the repository at this point in the history
Change-Id: I1876188da1d2cffac029b0bc21ff643f0e85a00d
  • Loading branch information
zeebo committed Mar 25, 2024
1 parent 070a4d1 commit 6a52e95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions satellite/metainfo/batch.go
Expand Up @@ -74,10 +74,10 @@ func (endpoint *Endpoint) Batch(ctx context.Context, req *pb.BatchRequest) (resp
if resp == nil {
return
}
for _, r := range resp.Responses {
for _, response := range resp.Responses {
mon.IntVal("batch_response_sizes",
monkit.NewSeriesTag("rpc", fmt.Sprintf("%T", r)),
).Observe(int64(proto.Size(r)))
monkit.NewSeriesTag("rpc", fmt.Sprintf("%T", response.Response)),
).Observe(int64(proto.Size(response)))
}
}()

Expand Down

0 comments on commit 6a52e95

Please sign in to comment.