diff options
author | Kassio Borges <kborges@gitlab.com> | 2022-03-11 08:08:48 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2022-03-11 08:08:48 +0300 |
commit | 21ca388dd09d8306268f717c0d2c28196b085d6a (patch) | |
tree | bd4e1dcc74e312863f5356e8ec3d4fc09a60c76e /internal/serving/disk | |
parent | 3ce95814cd7ef50bfba7454299a685cfe74a05ae (diff) |
Add correlation_id to all exception captures
Diffstat (limited to 'internal/serving/disk')
-rw-r--r-- | internal/serving/disk/reader.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/serving/disk/reader.go b/internal/serving/disk/reader.go index 4078d5ef..f250a0d6 100644 --- a/internal/serving/disk/reader.go +++ b/internal/serving/disk/reader.go @@ -12,8 +12,8 @@ import ( "time" "github.com/prometheus/client_golang/prometheus" - "gitlab.com/gitlab-org/labkit/errortracking" + "gitlab.com/gitlab-org/gitlab-pages/internal/errortracking" "gitlab.com/gitlab-org/gitlab-pages/internal/httperrors" "gitlab.com/gitlab-org/gitlab-pages/internal/logging" "gitlab.com/gitlab-org/gitlab-pages/internal/redirects" @@ -53,7 +53,8 @@ func (reader *Reader) tryRedirects(h serving.Handler) bool { if !errors.Is(err, redirects.ErrNoRedirect) { // We assume that rewrite failure is not fatal // and we only capture the error - errortracking.Capture(err, errortracking.WithRequest(h.Request), errortracking.WithStackTrace()) + + errortracking.CaptureErrWithReqAndStackTrace(err, h.Request) } return false } |