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.

Custom error properties not shown

See original GitHub issue

Describe the bug Opbeat used to copy over error properties to custom or at least show the extra properties in the extra tab. Now they are being logged under error.exception.attributes but not shown in the custom tab on the errors page in Kibana. Is there a way to get this functionality back? This is super useful info when fixing errors.

To Reproduce

const error = new Error('oops');
error.usefulExtraProp = 'all the data';
apm.captureError(error);

Expected behavior see top

Environment (please complete the following information)

  • OS: mac (any)
  • Node.js version: 8
  • APM Server version: don’t know
  • Agent version: 1.5.4

How are you starting the agent? (please tick one of the boxes)

  • Calling agent.start() directly (e.g. require('elastic-apm-node').start(...))
  • Requiring elastic-apm-node/start from within the source code
  • Starting node with -r elastic-apm-node/start

Additional context Add any other context about the problem here.

  • Agent config options

    Click to expand
    replace this line with your agent config options
    
  • package.json dependencies:

    Click to expand
    replace this line with your dependencies section from package.json
    

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sqrencommented, Jul 3, 2018

@alvarolobato Let’s discuss it at the next APM weekly, and prioritise it there.

1reaction
watsoncommented, May 16, 2018

Yeah, I agree it would make a lot of sense to show this data. I’m glad you found a workaround for now, but I’ll make sure to raise this with the UI team so we can look into what can be done.

cc @elastic/apm-ui

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom errors, extending Error - The Modern JavaScript Tutorial
Our errors should support basic error properties like message , name and, preferably, stack . But they also may have other properties of...
Read more >
How do I create a custom Error in JavaScript? - Stack Overflow
This confirmes the "problem" I ran into was the stack property of the error was the line number where new Error() was created,...
Read more >
Error - JavaScript - MDN Web Docs - Mozilla
Custom error types can also use the cause property, provided the subclasses' constructor passes the options parameter when calling super() .
Read more >
On Page creation of block does not show custom error ...
Hi,. I've a custom validator (MinMaxAttribute) added to a block property. When I create a new block of that type and save it...
Read more >
Creating Custom Errors in JavaScript - YouTube
Did you know that you can create your own custom Error objects in JavaScript? This can be accomplished with both the older ES5...
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