Skip to content

Commit

Permalink
Updating redefined-builtin-id in server_metrics.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
janardhankrishna-sai committed Sep 5, 2024
1 parent fd53abc commit 7465b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats/opentelemetry/server_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (h *serverStatsHandler) unaryInterceptor(ctx context.Context, req any, _ *g
}
ctx = grpc.NewContextWithServerTransportStream(ctx, alts)

response, err := handler(ctx, req)
res, err := handler(ctx, req)
if err != nil { // maybe trailers-only if headers haven't already been sent
if !alts.attachedLabels.Swap(true) {
alts.SetTrailer(alts.metadataExchangeLabels)
Expand All @@ -115,7 +115,7 @@ func (h *serverStatsHandler) unaryInterceptor(ctx context.Context, req any, _ *g
}
}

return response, err
return res, err
}

// attachLabelsStream embeds a grpc.ServerStream, and intercepts the
Expand Down

0 comments on commit 7465b90

Please sign in to comment.