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

Improve telemetry errors #602

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

evidolob
Copy link
Collaborator

@evidolob evidolob commented Dec 2, 2021

What does this PR do?

It ensures that we send errors to telemetry with stack traces.
Also it add uncaughtException error handler for yaml-ls process to track errors and sand them with stack trace to telemetry. That should add possibility to detect Maximum call stack size exceeded errors.

What issues does this PR fix or reference?

None, but it help with issues like redhat-developer/vscode-yaml#652 where we have only error message, but we don't have any trace.

Is it tested? How?

manually

Signed-off-by: Yevhen Vydolob <[email protected]>
@coveralls
Copy link

coveralls commented Dec 2, 2021

Coverage Status

Coverage increased (+0.5%) to 79.131% when pulling 7d1f8f7 on evidolob:improve-telemetry-error into 5bafa9d on redhat-developer:main.

Copy link
Collaborator

@gorkem gorkem left a comment

Choose a reason for hiding this comment

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

It is missing test cases. I have added some on evidolob#1 also handled a null check.

Added tests  for convertErrorToTelemetryMsg and fixed the null
case that was failing.
@evidolob evidolob requested a review from gorkem December 14, 2021 12:20
@evidolob evidolob merged commit a9e95a4 into redhat-developer:main Dec 15, 2021
@evidolob evidolob deleted the improve-telemetry-error branch December 15, 2021 12:08
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.

4 participants