Skip to content

Commit

Permalink
cp 3897 (#3901)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaikas authored Aug 20, 2020
1 parent b174462 commit e333ddb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/mtbroker/filter/filter_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@ func (h *Handler) sendEvent(ctx context.Context, headers http.Header, target str
err = fmt.Errorf("failed to dispatch message: %w", err)
}

_ = h.reporter.ReportEventDispatchTime(reporterArgs, resp.StatusCode, dispatchTime)
sc := 0
if resp != nil {
sc = resp.StatusCode
}

_ = h.reporter.ReportEventDispatchTime(reporterArgs, sc, dispatchTime)
return resp, err
}

Expand Down

0 comments on commit e333ddb

Please sign in to comment.