mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #7339 from overleaf/em-sentry-info
Send OError info to Sentry GitOrigin-RevId: b89f2d86cf8b14d65cc38266b042bc72a4bb1922
This commit is contained in:
parent
97dca3de1c
commit
b4e6b7215b
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue