Closed caalador closed 2 years ago
Marking the root span as an error instead of creating a separate error span makes definitely more sense.
However not marking the root span as an error in all cases can make some critical issues hard to discover. In the following case, I navigate to a view that then threw an exception in the constructor, in this case the root span does not get marked as an error:
And this is what the user sees in the browser:
As we discovered, unless the root span is marked as an error, it will not show up in the error reporting views of several vendors. I think this is an error that you would definitely expect to show up there.
A semi related issue is that the same exception gets recorded multiple times. In this example, the exception is present on all 3 spans:
Failing navigation in the constructor might be a corner case, but the multiple exceptions is there now also.
Instrument Errorhandler to catch any exceptions that are caught for requests.
Closes #80