Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: report errors from LSP methods to rollbar #226

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

loderunner
Copy link
Contributor

Description

This PR will report errors from LSP methods to rollbar.

Implementation details

Implemented using a "middleware" style. It takes the "replier" function provided by the JSON RPC server, and wraps in a same-signature function, checking for an error, before reporting it to rollbar and passing it on to the original replier.

@loderunner loderunner force-pushed the rollbar-log-json-rpc-errors branch from ce0d833 to 04a8a9b Compare October 16, 2023 08:14
Copy link
Contributor

@abdelDriowya abdelDriowya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome !

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

Successfully merging this pull request may close these issues.

3 participants