Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions node/immutable_newrelic.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func newRelicMiddleware(nrApp *newrelic.Application, next http.Handler) http.Han
return
}
requestBody := RequestBody{}
if err = json.Unmarshal(body, &requestBody); err != nil {
log.WithError(err).Error("Failed to parse request body")
if err := json.Unmarshal(body, &requestBody); err != nil {
log.Debug("Failed to parse request body", "body", body, "err", err.Error())
} else {
// Add the RPC method to the transaction attributes
txn.AddAttribute("rpcMethod", requestBody.Method)
Expand Down