Angular: Request: AngularDart with Sentry.io (or similar service).

Created on 25 May 2017  Â·  10Comments  Â·  Source: angulardart/angular

One awesome feature of Dart and AngularDart is centralized exception handling. Google has its own (internal) services for logging errors and stack traces that occur in production, so we haven't hit this issue, but this would be a great small project for some folks in the community to tackle.

Please contact me or post on this thread if you are interested in contributing.

good first issue not planned

Most helpful comment

I submitted a PR a long time ago on https://github.com/flutter/sentry/pull/22 (that I need to update)

But this repo https://github.com/leftyio/angular_sentry contain a working version for the last stable version of Angular.

It works even if sometimes, sentry failed to unminify stacktrace

All 10 comments

@zoechi created a nifty sentry.io raven js interop client for a project we're working on. We open sourced it & you can find it here: https://github.com/jimmyff/raven.dart

It's working however I believe there is currently an issue with building due to dartojs & the js interop. Also I should probably move it under my organisations github profile rather than having it sitting on my personal one.

Cool! Let me know if you have any questions maybe I can help.

FYI, I'm going to try and wire up Sentry.io for Flutter apps. I think I might have to write a pure Dart client (hopefully this is not too hard 🤞). Perhaps there's room for collaboration. I'll report back as I find out more.

That would be great!

On Mon, Jun 19, 2017, 3:44 PM Yegor notifications@github.com wrote:

FYI, I'm going to try and wire up Sentry.io for Flutter apps. I think I
might have to write a pure Dart client (hopefully this is not too hard 🤞).
Perhaps there's room for collaboration. I'll report back as I find out more.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/angular2/issues/413#issuecomment-309594237,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKQ7tY1-IIpgQw_GJAHZC4Lbr020KYYks5sFvnVgaJpZM4NmnxA
.

Update: I have a working pure Dart Sentry.io client: https://github.com/yjbanov/sentry

However, it does not yet work on the web because I haven't found a graceful way to handle request payload compression (https://github.com/yjbanov/sentry/issues/2).

One more thing: folks would love to see an example of deobsfucating stack traces too.

Update: the sentry client repo has moved to https://github.com/flutter/sentry. Pull requests are welcome 😃

Good enough to close this issue?

  • Dart SDK Version : 2.5.0
  • AngularDart Version : 5.3.0
  • Whether you are using Windows, macOS, or Linux : macOS
  • Whether you are using Chrome, Safari, Firefox, Edge (if applicable) : All browsers
  • All versions of Sentry since 2.0.0

Reopening this issue here, as the Flutter repo does not feel like the proper place to do discuss it.
Importing the Sentry lib in Angular Dart crashes the app :
Web console :
Uncaught SyntaxError: Unexpected token '<'

Webdev build :

build_web_compilers:entrypoint on web/main.dart: Skipping compiling volya_app_dart|web/main.dart with dart2js because some of its
transitive libraries have sdk dependencies that not supported on this platform:

sentry|lib/sentry.dart

https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings

Any breaking changes since this was posted ?

I submitted a PR a long time ago on https://github.com/flutter/sentry/pull/22 (that I need to update)

But this repo https://github.com/leftyio/angular_sentry contain a working version for the last stable version of Angular.

It works even if sometimes, sentry failed to unminify stacktrace

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mandreyel picture mandreyel  Â·  6Comments

ranquild picture ranquild  Â·  4Comments

filiph picture filiph  Â·  4Comments

matanlurey picture matanlurey  Â·  3Comments

AndreyChernykh picture AndreyChernykh  Â·  4Comments