Skip to content

Commit

Permalink
report code using payload since m.Data can be modified
Browse files Browse the repository at this point in the history
  • Loading branch information
henrod committed May 16, 2019
1 parent 18da58b commit f842c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func (a *Agent) write() {
if m.Err {
// default code is overwritten, if any
rErr = &errors.Error{Code: errors.ErrUnknownCode}
_ = a.serializer.Unmarshal(m.Data, rErr)
_ = a.serializer.Unmarshal(payload, rErr)
}

metrics.ReportTimingFromCtx(data.ctx, a.metricsReporters, handlerType, rErr)
Expand Down

0 comments on commit f842c12

Please sign in to comment.