Closed tayfun-corp closed 11 months ago
thanks @tayfun-corp for this issue report, I'll investigate
Thanks @zivl , I originally created this on Sentry with https://github.com/getsentry/sentry-javascript/issues/9514
As far as I understand this may not be an error but a feature? I'm confused though:
Again, thanks for your contributions!
hey @tayfun-corp ! I was just about to open this issue to Sentry guys myself, as after debugging this I also see that it the issue is not originated by the testkit but with how Sentry functions, as they explained in @AbhiPrasad's comment.
I'll try to answer your questions as far as I understand:
First, let's understand some terminology, the difference between a Sentry event
and a Sentry report
is that an event is one instance of sending data to Sentry, generally an error or exception, while a report is the action of capturing and sending an event to Sentry. In other words, an event is the data being sent, and a report is the process of sending that data to Sentry.
So it looks like 3 reports is normal, in terms of how Sentry work under the hood. Though, you can alway customize it through Integrations (e.g. disable the GlobalHandler Integration and etc.)
Sure, you can go to Sentry Docs and find more info about the differences between events, exceptions and reports and how you can control the data being sent.
As for sentry-testkit
- I will:
<Sentry.ErrorBoundary>
component I'll leave this issue open until I complete those 2 items
released in sentry-testkit@5.0.7
Awesome, thanks for the quick turnaround on this @zivl!!
Describe the bug
I'm testing ErrorBoundary and getting 3 reports for a single exception.
To Reproduce
Simple test:
Expected behavior
I expect 1 report to be tracked. Instead it is:
Screenshots
Debugger shows these in reports:
Sentry Versions (please complete the following information):