freeCodeCamp/api/src
Muhammed Mustafa 1d8e9fb0b7
feat(api): create sentry plugin (#49731)
* feat(api): add sentry plugin

Apply suggestions from code review

Revert "feat(api): add sentry plugin"

This reverts commit fcde4ee03e9b83e335a6a2bccd490490e9993597.

install sentryNode

WIP: create sentry debug

WIP: find out why use errorhandler isn't typed correct

install sentry

add the deleted sentry code

create sentry plugin

* fix error found through sentry

* Polish sentry plugin

Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>

* duplicate the changes made in the other plugin

* add done to seterrorHandler

* Fix a typo in sentry option

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* Stop the dns from running if a DSN wasn't provided

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* Polish the function and check the variable value

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* check the dsn dashboard in the env

* export dsn value if it isn't sentrydashboard

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* when the value is undefined init errors

* revert the if statement

* throw an error whenever an environment variable is not right

---------

Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-04-05 08:35:23 -07:00
..
db chore(api): compile TS into /dist (#49812 2023-03-28 19:42:20 +05:30
middleware chore(api): compile TS into /dist (#49812 2023-03-28 19:42:20 +05:30
plugins feat(api): create sentry plugin (#49731) 2023-04-05 08:35:23 -07:00
routes fix(deps): update dependency @sinclair/typebox to v0.26.6 (#49855) 2023-04-03 09:13:36 +00:00
schemas fix(deps): update dependency @sinclair/typebox to v0.26.6 (#49855) 2023-04-03 09:13:36 +00:00
utils feat(api): create sentry plugin (#49731) 2023-04-05 08:35:23 -07:00
app.ts feat(api): create sentry plugin (#49731) 2023-04-05 08:35:23 -07:00
server.test.ts chore(api): compile TS into /dist (#49812 2023-03-28 19:42:20 +05:30
server.ts feat(api): dev login (#49880) 2023-03-29 18:08:38 +05:30