|
|
@@ -68,6 +68,14 @@ func (c *ReportErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ // push to the global stream
|
|
|
+ err = redis_stream.PushToGlobalStream(c.Config.RedisClient, infra, operation, "error")
|
|
|
+
|
|
|
+ if err != nil {
|
|
|
+ apierrors.HandleAPIError(c.Config.Logger, c.Config.Alerter, w, r, apierrors.NewErrInternal(err), true)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
// report the error to the error alerter but don't send to client
|
|
|
apierrors.HandleAPIError(c.Config.Logger, c.Config.Alerter, w, r, apierrors.NewErrInternal(
|
|
|
fmt.Errorf(req.Error),
|