Commit graph

468 commits

Author SHA1 Message Date
Keyman Build Agent
bf858daffd auto: increment stable-15.0 version to 15.0.272 2022-10-18 14:33:20 -04:00
Keyman Build Agent
4f1c13d77b auto: increment stable-15.0 version to 15.0.271 2022-09-12 06:08:21 -04:00
Keyman Build Agent
f76ba85e82 auto: increment stable-15.0 version to 15.0.270 2022-08-29 01:01:44 -04:00
Keyman Build Agent
c0e9ac2355 auto: increment stable-15.0 version to 15.0.269 2022-08-04 14:28:24 -04:00
Keyman Build Agent
1f1f2d46e0 auto: increment stable-15.0 version to 15.0.268 2022-07-26 01:19:43 -04:00
Keyman Build Agent
d9d0d83c42 auto: increment stable-15.0 version to 15.0.267 2022-07-08 07:33:31 -04:00
Marc Durdin
4875fad407 chore(web): ts-ignore for downlevel Sentry calls 2022-07-07 10:58:19 +10:00
Marc Durdin
22d21e30f7 chore: Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2022-07-07 09:37:45 +10:00
Marc Durdin
2e38d403b3 fix(web): only report console errors if _enabled 2022-07-07 09:37:42 +10:00
Marc Durdin
e3e8039d8e fix(web): improve console.error() reporting
The back story:

Currently Keyman for Android reports errors sent to the console via
`console.error()` into Sentry but sentry-manager itself does not. This
means that Keyman for iPhone and iPad and other users of sentry-manager
do not report these errors. Many of these errors are important.

What's worse is that Keyman for Android's error reporting here (via the
`sendKMWError()` function in Keyman Engine for Android) does not capture
stack traces, and so many of the errors we get do not have enough
information to resolve them.

Furthermore, by having `sendKMWError()` in Keyman for Android, we
capture exceptions and other program errors twice -- once on the web
side, and once on the Java side -- this adds noise to our error
reporting. Sentry also tends to lump many unrelated `sendKMWError()`
events together, so tracking resolution to the errors is painful.

The fix:

This adds a patch to sentry-manager to capture `console.error()` and
`console.warning()` events and report them through Sentry's normal error
reporting, and disables the `sendKMWError()` report (although we leave
the breadcrumb in place for when there are later, related Java errors).
There is a Sentry integration called CaptureConsole, but it does not
support capturing stack traces until v6.14
(https://github.com/getsentry/sentry-javascript/pull/4034). Updating
Sentry to 6.14 or newer is a bigger job (due to ES6 baseline req. etc.)

Note that Keyman for iOS currently has some other stubs in place
overriding the `console.*` functions. These should be removed for
release builds, so that we can use this pattern instead. I will try and
tackle this in a follow-up PR (I will build it on my mac so I can test
it).

A sample error report captured with this mechanism (no sourcemaps here
because this is a -local build):

https://sentry.io/organizations/keyman/issues/3401287467/events/c40fd2cebb7743cc8dfe72e0dd34bf65/?project=5983524

I am proposing we back-port this to 15.0-stable as we are missing a lot
of data in many of our error reports on Android.
2022-07-07 09:37:33 +10:00
Keyman Build Agent
62a20ea48b auto: increment stable-15.0 version to 15.0.266 2022-07-04 05:01:46 -04:00
Keyman Build Agent
d84434b235 auto: increment stable-15.0 version to 15.0.265 2022-07-01 00:09:13 -04:00
Keyman Build Agent
9b8ac0c8d8 auto: increment stable-15.0 version to 15.0.264 2022-06-24 01:02:48 -04:00
Keyman Build Agent
021c8d5e89 auto: increment stable-15.0 version to 15.0.263 2022-06-22 21:04:12 -04:00
Keyman Build Agent
86014a5ea2 auto: increment stable-15.0 version to 15.0.262 2022-06-18 00:39:25 -04:00
Keyman Build Agent
d3b4cf1dcc auto: increment stable-15.0 version to 15.0.261 2022-06-14 23:30:51 -04:00
Keyman Build Agent
0a6ffa137a auto: increment beta version to 15.0.260 2022-06-10 14:02:55 -04:00
Keyman Build Agent
f9537ee2a2 auto: increment beta version to 15.0.259 2022-06-06 14:02:30 -04:00
Keyman Build Agent
d1576e6717 auto: increment beta version to 15.0.258 2022-06-03 14:02:30 -04:00
Keyman Build Agent
99add57dda auto: increment beta version to 15.0.257 2022-06-01 14:02:17 -04:00
Keyman Build Agent
a59fa21d61 auto: increment beta version to 15.0.256 2022-05-31 14:02:28 -04:00
Keyman Build Agent
2eb0ccfcc3 auto: increment beta version to 15.0.255 2022-05-30 14:02:44 -04:00
Keyman Build Agent
cd2b32fc4d auto: increment beta version to 15.0.254 2022-05-27 14:05:13 -04:00
Keyman Build Agent
996018fe90 auto: increment beta version to 15.0.253 2022-05-25 14:02:14 -04:00
Keyman Build Agent
6ad1549167 auto: increment beta version to 15.0.252 2022-05-23 14:02:48 -04:00
Keyman Build Agent
9697f0233c auto: increment beta version to 15.0.251 2022-05-20 14:02:40 -04:00
Keyman Build Agent
e71dd1af38 auto: increment beta version to 15.0.250 2022-05-19 14:02:12 -04:00
Keyman Build Agent
31879771ed auto: increment beta version to 15.0.249 2022-05-17 14:02:44 -04:00
Keyman Build Agent
d1b9f2d52c auto: increment beta version to 15.0.248 2022-05-16 14:02:41 -04:00
Keyman Build Agent
bd85fc895e auto: increment beta version to 15.0.247 2022-05-11 14:02:08 -04:00
Keyman Build Agent
5dbb6642b7 auto: increment beta version to 15.0.246 2022-05-10 14:01:54 -04:00
Keyman Build Agent
7448674fe0 auto: increment beta version to 15.0.245 2022-05-09 14:01:48 -04:00
Keyman Build Agent
52b42a5958 auto: increment beta version to 15.0.244 2022-05-03 14:02:37 -04:00
Keyman Build Agent
9286a67ee0 auto: increment beta version to 15.0.243 2022-04-29 14:02:29 -04:00
Keyman Build Agent
d2edf15283 auto: increment beta version to 15.0.242 2022-04-27 14:02:30 -04:00
Darcy Wong
6c32ce5603
Merge pull request #6569 from keymanapp/fix/core/web/sentry-manager-for-each
fix(common/core/web): Fix forEach loop in SentryManager
2022-04-27 05:51:57 +07:00
Keyman Build Agent
2a59670bf2 auto: increment beta version to 15.0.241 2022-04-26 14:02:34 -04:00
Darcy Wong
de6dfda0cc fix(common/core/web): Fix forEach loop in SentryManager 2022-04-26 11:26:27 +07:00
Keyman Build Agent
d17e03a35a auto: increment beta version to 15.0.240 2022-04-22 14:02:30 -04:00
Keyman Build Agent
c5199698ac auto: increment beta version to 15.0.239 2022-04-21 14:02:18 -04:00
Keyman Build Agent
0e3173c528 auto: increment beta version to 15.0.238 2022-04-20 14:02:18 -04:00
Keyman Build Agent
414199711f auto: increment beta version to 15.0.237 2022-04-19 14:02:23 -04:00
Keyman Build Agent
f4473990a7 auto: increment beta version to 15.0.236 2022-04-18 14:02:00 -04:00
Keyman Build Agent
4052e00890 auto: increment beta version to 15.0.235 2022-04-14 14:02:32 -04:00
Keyman Build Agent
767817c425 auto: increment beta version to 15.0.234 2022-04-13 14:02:17 -04:00
Keyman Build Agent
114f58ee7f auto: increment beta version to 15.0.233 2022-04-11 14:02:20 -04:00
Keyman Build Agent
cdb4680698 auto: increment beta version to 15.0.232 2022-04-09 14:02:21 -04:00
Keyman Build Agent
01c089cf35 auto: increment beta version to 15.0.231 2022-04-08 14:02:37 -04:00
Keyman Build Agent
ef9a9459d2 auto: increment beta version to 15.0.230 2022-04-07 14:02:52 -04:00
Keyman Build Agent
54884ec2ad auto: increment beta version to 15.0.229 2022-04-05 14:02:12 -04:00