question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a way to get the UUID before the callback

See original GitHub issue

When an error occurs in our app, I would like to log it to Rollbar and then direct the user to a separate error page that displays the UUID. This way they can refer to it when they contact our support team.

Unfortunately, even though the UUID is generated client-side, I can only access the UUID in the callback provided to e.g. Rollbar.error(). Would it be possible to get the UUID sooner? Perhaps NotifierPrototype._log can return an object that contains contextual information such as the UUID?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lehresmancommented, Feb 13, 2017

@ukaaa Great idea! Thanks for the suggestion. I submitted a PR with this functionality. You’ll be able to get the UUID from any of the log functions now.

var obj = Rollbar.error('The cake is a lie.');
console.log(obj.uuid);
0reactions
lehresmancommented, Feb 13, 2017

Merged. You’ll see this functionality in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass a unique uuid to each callback? - Stack Overflow
I'm using multer-s3-transform , which allows me to manipulate the image coming in, before uploading it to my bucket. Here's what I have:...
Read more >
Using uuid for the id and getting it returned after Create or Save
Anyways is there a way to get the id after save if I am not using self incrementing ids? Maybe I am missing...
Read more >
How to Generage a UUID in Node.js - Future Studio
Idea 2: Use the uuid Package. Because until recently there was no native way to generate UUIDs in Node.js. You had to use...
Read more >
Using another user identifier (UUID) than the user_id
You can make use of the uuid NPM package in rules as a quick way to generate a UUID that can then be...
Read more >
UUID - Android Developers
Static factory to retrieve a type 3 (name based) UUID based on the specified ... to wait until another thread invokes the notify()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found