Custom error properties not shown
See original GitHub issueDescribe 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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alvarolobato Let’s discuss it at the next APM weekly, and prioritise it there.
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