Error cause is not available in traces #1265
Labels
community
Was opened by a community member
core
Involves Datadog core libraries
feature-request
A request for a new feature or change to an existing one
Projects
Currently whenever an error is raised, you can only see the class, message and backtrace of that error. However, usually the error has an underlying
cause
, which is another error, so it also has a class, message and backtrace.Example, the following code will raise
Wrapping exception
. The.cause
of this exception isInner exception
:When running this in Ruby it'll output the full exception (including the nested causes):
The same happens when this is raised in Rollbar. However, whenever this is raised using dd-trace-rb, only the top-most exception is logged for the trace (
Wrapping exception
).It would be nice to have all causes of an exception available whenever such an exception is raised.
The text was updated successfully, but these errors were encountered: