From b4e6b7215bec3a0ceba0bfb507cb965e6177e70a Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Thu, 7 Apr 2022 07:54:38 -0400 Subject: [PATCH] Merge pull request #7339 from overleaf/em-sentry-info Send OError info to Sentry GitOrigin-RevId: b89f2d86cf8b14d65cc38266b042bc72a4bb1922 --- libraries/logger/sentry-manager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/logger/sentry-manager.js b/libraries/logger/sentry-manager.js index ca549a26a3..07840dd9a5 100644 --- a/libraries/logger/sentry-manager.js +++ b/libraries/logger/sentry-manager.js @@ -1,3 +1,4 @@ +const OError = require('@overleaf/o-error') const RATE_LIMIT_MAX_ERRORS = 5 const RATE_LIMIT_INTERVAL_MS = 60000 @@ -95,6 +96,9 @@ class SentryManager { error = newError } + // OError integration + extra.info = OError.getFullInfo(error) + // filter paths from the message to avoid duplicate errors in sentry // (e.g. errors from `fs` methods which have a path attribute) try {