Comments (13)
getsentry/sentry-javascript#345
from tracekit.
from tracekit.
I've been trying to get a hold of raven to talk about some of their changes. I'll need to create some unit tests before I do any more merging.
from tracekit.
We may want to see what improvements we can make via ( https://bugsnag.com/blog/js-stacktraces/ )
from tracekit.
I just asked a bunch of detailed questions here: getsentry/sentry-javascript#345 I'd like to bring in some of their changes but I have questions.
from tracekit.
Some changes that would need pulled in from raven.js before we'd consider using upstream:
- lastArgs in processLastException
- rethrow argument on report
Other changes I'd like to see:
- Removal of non-core features from primary lib (TraceKit.wrap, source code fetching, setTimeout/setInterval patching)
- useragent is a constant, and should not constantly be added to objects
- mode = failed doesnt make a lot of sense; its conflating concerns between status result and method of operation
from tracekit.
I've been wanting to bring these changes in. Could you please do two separate pull requests for the first two with a very brief explanation of last args and report and what issues you saw / fixed. This would be a huge help as I'm in the middle of writing unit tests.
I want to ditch user agent completely. What is mode even used for? I thought we could ditch that too as I wasn't sure what value it added.
For removal of non core features.. This is coming but we need unit tests first. Then the features we remove will be plugins or a compat shim so we don't break existing people
from tracekit.
We have no desire to help maintain TraceKit upstream at this time. To be frank, we have too many other things to do. I personally don't work on raven.js, and when it comes down to it we don't need 50% of the code in the project. I'd rather invest our time into removing TraceKit than pushing more changes upstream, but we're willing to reconsider that if upstream maintainers can push in the same direction as us.
Regarding the changes, the first because the code is broken today without it, and the other because this code should have nothing to do with window.onerror. Historically TraceKit has conflated "i want to solve window.onerror" with "i just want actual exceptions to work correctly". Unless you change it so that 'TraceKit.report is only for window.onerror' then there's really no reason it should ever be throwing exceptions by default.
from tracekit.
We don't expect you to contribute but it would be helpful (I can diff it as well). Yeah I agree some things need to change and they will.
from tracekit.
getsentry/sentry-javascript#315 as it points out whatever the original change was is currently incorrect
from tracekit.
I just got rid of user agent and url. More work to do but it's a start.
from tracekit.
I'm one step closer to bringing in the raven changes. I just finished the unit tests a few weeks ago and need to get this working this weekend.
from tracekit.
@dcramer I'm going to close this. I've merged in the changes we both felt were needed. We need to add some kind of flag to report but I kinda want to overhaul it very soon with plugins (creating a branch now). We need this flag as it directly effects #32
from tracekit.
Related Issues (20)
- Handle frames generated by Firefox internal errors (e.g. NS_ERROR_FAILURE) HOT 5
- Update docs for TypeScript HOT 16
- getSource doesn't support urls in the format: protocol://domain:port/path HOT 1
- Module loading code throws errors in strict mode HOT 1
- New release? HOT 2
- `repors.subscribe` subscribers have no access to the original Error object HOT 4
- Wipes `url` property from stack if url contains "native" HOT 1
- Unable to set remoteFetching in TypeScript HOT 3
- Catch unhandled promise rejection events HOT 11
- TypeError: Cannot read property 'tagName' of null HOT 7
- Extremely long delays on errors with a long message HOT 4
- Fix flakey tests
- Capture network errors & add breadcrumbs ? HOT 1
- TraceKit Unhandled Promise Rejection 0.4.6 not yet published in NPM HOT 1
- TraceKit will get an undefined error type and message on Unhandle Promise rejection error HOT 4
- Cannot read property 'name' of undefined HOT 2
- ESLint problems for tracekit.js HOT 2
- Unexpected error when computing Gecko stack traces HOT 1
- TraceKit Report is not exported from package HOT 3
- Possible to disable Chrome extension errors? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tracekit.