GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-nodejs

Unable to grab references to uncaught exceptions

Open
#215 28 comments 0 reactions 0 assignees View on GitHub
docs enhancement P3 question
Dominant language
TypeScript
Stars
1.4k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

I work at Sentry, an open source software for application monitoring. We are adding support for Node+Cloud Functions to automatically report code errors. However, we are not able to get reference to the handler in order to capture uncaught exceptions. developers are required to manually catch the error and report it (https://github.com/GoogleCloudPlatform/stackdriver-errors-js#usage).

Here's current Sentry Node integration on Cloud Functions (https://docs.sentry.io/platforms/node/guides/gcp-functions/). This requires captureException call.

As a result of conversation with Steren and Vinod, posting the issue here.
cc: @steren @grant

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.