Improvements
Added error attributes to spans.
- The public api method
noticeError()now attaches exception details to the currently executing span. Spans with error details are now highlighted red in the Distributed Tracing UI. Also, the attributeserror.classanderror.messageare added to the span. If multiple errors are recorded for a single span, only the final error's attributes will be added to the span. - Added ID of the span in which an error occurred to the corresponding transaction error event.
- The public api method
Added new public API methods
addCustomSpanAttributeandaddCustomSpanAttributesto add attributes to the currently executing span.Added new attributes to http outbound spans:
http.statusCodeandhttp.statusText.Updated W3C Trace Context "Known Issues and Workaround" notes with latest accurate consideration.
Converted unit tests to run via
tap. Removesmochadependency.
Fixes
- Fixed route naming when hapi's
preroute handlers share functions. - Fixed
child_processinstrumentation so that handlers can be effectively removed when attached via.once()or manually removed viaremoveListener().