Logo
Explore Help
Sign In
gaspersic/freeCodeCamp
1
0
Fork 0
You've already forked freeCodeCamp
Code Issues Pull Requests Projects Releases Wiki Activity
Files
f777fb40138f11b0973a55562018db38bd1bee85
freeCodeCamp/api-server/src/server/middlewares/sentry-request-handler.js

9 lines
264 B
JavaScript
Raw Normal View History

feat(api): enable Sentry reporting
2020-03-23 18:31:25 +01:00
import { Handlers } from '@sentry/node';
fix: re-revert the API decoupling (#41263) * fix(api): decouple api from curriculum This reverts commit 8f0e441644c6e31e2e837e2b3d95efb8a6622787 and introduces the implementations from #40703. * fix(gitpod): add curriculum build to GitPod This reverts commit 706d70f58d8e4f82b16544edd6bebb8564953850 and introduces implementations from #41234. * docs: update DevOps manual for api change (#41259) Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-26 01:32:35 +05:30
import { sentry } from '../../../../config/secrets';
feat(api): enable Sentry reporting
2020-03-23 18:31:25 +01:00
export default function sentryRequestHandler() {
Add Sentry to client for error handling (#43920) Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-04-15 10:54:02 -04:00
return sentry.dsn === 'dsn_from_sentry_dashboard'
feat(api): enable Sentry reporting
2020-03-23 18:31:25 +01:00
? (req, res, next) => next()
: Handlers.requestHandler();
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 294ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API