Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

How to implement sentry using restify npm #287

Closed
dibeesh opened this issue Mar 6, 2017 · 1 comment
Closed

How to implement sentry using restify npm #287

dibeesh opened this issue Mar 6, 2017 · 1 comment

Comments

@dibeesh
Copy link

dibeesh commented Mar 6, 2017

I have implented sentry using express npm successfully.
Currently I am trying to implement the sentry using restify in my another app.
But I could not getting any "uncaughtException".
How to implement sentry using restify npm?

@LewisJEllis
Copy link
Contributor

We don't have a middleware for restify yet. For now I would recommend taking a look at restify's error handling docs and adding hooks to some of its mechanisms to call Raven.captureException. Specifically for uncaughtException, restify server objects will emit an uncaughtException event that you might want to listen for.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants