You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Thanks for reporting the issue. Can you tell me about your specific situation (maybe some sample code).
Our algorithm for minified source detection is not deterministic (it can't be!) but it should work in most cases.
I have been testing our app to work with angular-opbeat. For some reason, when using our original code, the stacktrace frame was not containing pre and post context. So I was investigating what might be wrong.
When looking at your code, I found out that isSourceMinified() was returning "true". Obviously, that was not actually true, because I knew the source file is only concatinated but not uglyfied.
Obviously, I later made that the line in my original code shorter, but in general it was lying about file being minified. I know some developers don't really care about how long their lines are, so this should be probably made as a setting set to default to 250. Also, it would be good to add this to documentation for future references.
Thanks for your extensive reply @juliusosokinas ,
You're right about the documentation, we will sort it out soon.
About the setting, it's more likely that we provide a way to manually specify which files are not minified. I will take a note of this for future enhancements.
The method returns "true" on non-minified files. The reason for that is when source files have long lines (longer then 250 char limit set).
I know 250 chars is a lot, but still, can this setting be available to set via the configuration?
I'm using angular-opbeat.js.
The text was updated successfully, but these errors were encountered: