getsentry / getsentry/sentry-javascript

Document reportError as an option for reporting in browsers

Open
#13,547 3 comments 0 reactions 0 assignees View on GitHub
Browser Tests
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

### Problem Statement

I think the global `reportError` function could be an idiomatic way to report errors to Sentry from JavaScript, if it is not too general for your use case. I don't find much talk about this function on the webs, but it has been available across major browsers for some time.

### Solution Brainstorm

The Capturing Errors and Events page of the docs could have a small section that mentions `reportError` as an alternative.

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.