Support adding cause
as attribute on recorded exception
#32811
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Is your feature request related to a problem? Please describe.
When using the
span.recordException
, it does not record thecause
attribute which means inner exceptions are lost.Describe the solution you'd like
Use https://github.com/sindresorhus/serialize-error or similar approaches to ensure error information is not dropped.
Describe alternatives you've considered
Not using the in-built span.recordException function, instead writing a custom one which does not drop information from the exception.
Additional context
The text was updated successfully, but these errors were encountered: