GithubHelp home page GithubHelp logo

Bring in external changes. about tracekit HOT 13 CLOSED

csnover avatar csnover commented on June 3, 2024
Bring in external changes.

from tracekit.

Comments (13)

niemyjski avatar niemyjski commented on June 3, 2024

getsentry/sentry-javascript#345

from tracekit.

niemyjski avatar niemyjski commented on June 3, 2024

MindscapeHQ/raygun4js#114

from tracekit.

niemyjski avatar niemyjski commented on June 3, 2024

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.

niemyjski avatar niemyjski commented on June 3, 2024

We may want to see what improvements we can make via ( https://bugsnag.com/blog/js-stacktraces/ )

from tracekit.

niemyjski avatar niemyjski commented on June 3, 2024

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.

dcramer avatar dcramer commented on June 3, 2024

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.

niemyjski avatar niemyjski commented on June 3, 2024

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.

dcramer avatar dcramer commented on June 3, 2024

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.

niemyjski avatar niemyjski commented on June 3, 2024

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.

dcramer avatar dcramer commented on June 3, 2024

getsentry/sentry-javascript#315 as it points out whatever the original change was is currently incorrect

from tracekit.

niemyjski avatar niemyjski commented on June 3, 2024

I just got rid of user agent and url. More work to do but it's a start.

from tracekit.

niemyjski avatar niemyjski commented on June 3, 2024

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.

niemyjski avatar niemyjski commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.