Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack trace features? #24

Open
dandv opened this issue Jul 16, 2015 · 14 comments
Open

Stack trace features? #24

dandv opened this issue Jul 16, 2015 · 14 comments

Comments

@dandv
Copy link

@dandv dandv commented Jul 16, 2015

Any plans for this? Nothing fancy like TrackJS's telemetry, but at least backtraces like the ones provided by Rollbar, Airbrake, or GetSentry.

@mostlyjason
Copy link
Contributor

@mostlyjason mostlyjason commented Jul 20, 2015

sendConsoleErrors value to true will send all the unhandled errors to the Loggly. Does this match what you're looking for?

@varshneyjayant
Copy link
Contributor

@varshneyjayant varshneyjayant commented Jul 22, 2015

@dandv Try setting

_LTracker.push({
                'logglyKey' : 'your-key',
                'sendConsoleErrors' : true
            });

You should be able to send stacktraces to Loggly.

@dandv
Copy link
Author

@dandv dandv commented Jul 27, 2015

Here's what I mean by a stack trace:

image

Judging by its description, sendConsoleErrors only seems to log unhandled errors, but there is no mention of stack traces on the client at https://www.loggly.com/docs/javascript/.

@varshneyjayant
Copy link
Contributor

@varshneyjayant varshneyjayant commented Jul 27, 2015

@dandv are you talking about catched errors? or stack traces of unhandled errors?

@dandv
Copy link
Author

@dandv dandv commented Jul 28, 2015

I'm looking for a client-side JS error logger for both caught and uncaught errors. Rollbar and {Track:js} seem to do the best job at the so far. See rollbar/rollbar.js#108.

@andrewmclagan
Copy link

@andrewmclagan andrewmclagan commented Sep 29, 2016

yeah the current functionality leaves allot to be desired

@iamtchelo
Copy link

@iamtchelo iamtchelo commented Jan 24, 2017

I have a question. I have a minified js file and it's impossible to get a real error, for this problem I need to generate a source map file for each javascript file. How Loggy deals with it? @varshneyjayant

@iamtchelo
Copy link

@iamtchelo iamtchelo commented Feb 1, 2017

Sorry, I think that I didn't explain myself correctly. I have an app built using requirejs and I am generating the source map files for each one. My problem is that when I send to loggly the error exception I can't see the not-compiled version in the dashboard. Is it possible to see the non-compiled version instead of the compiled version in Loggly? Maybe there is a way to say Loggly to use the source map files before send the log exception. In that way I could see the error line and row easily and don't try to guess where the error happened. Thanks @varshneyjayant

@apackin
Copy link
Contributor

@apackin apackin commented Jul 17, 2017

We were experiencing the same issue as described by @marcelodeveloper .
We're using something similar to what is PRed above if you're interested @varshneyjayant

@fastfrwrd
Copy link

@fastfrwrd fastfrwrd commented Jul 17, 2017

For reference, this article on Sentry's blog thoroughly covers the implementation details to get a cross-browser stack trace. It's not trivial - you need to to invasively augment methods like setTimeout and addEventListener. https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror.html

@varshneyjayant
Copy link
Contributor

@varshneyjayant varshneyjayant commented Jul 17, 2017

@mostlyjason
Copy link
Contributor

@mostlyjason mostlyjason commented Jul 17, 2017

Thanks for the link! We will review this next time we do an update of the JavaScript library, but there are a few other projects ahead of this one in the queue.

@Cphilo
Copy link

@Cphilo Cphilo commented Aug 23, 2018

Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.