Skip to content

Commit

Permalink
fix stmt accidentally removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowden committed Sep 6, 2024
1 parent 02f9e15 commit bdb739e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ func (c *config) handleRPC(ctx context.Context, rs stats.RPCStats, isServer bool
switch rs := rs.(type) {
case *stats.InPayload:
if gctx != nil {
messageId = atomic.AddInt64(&gctx.messagesReceived, 1)

// Run this once on InPayload and record the attributes for the entire RPC.
if c.MetricAttributesFn != nil {
fnMetricAttrs := c.MetricAttributesFn(ctx, rs.Payload)
Expand Down

0 comments on commit bdb739e

Please sign in to comment.