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.class
anderror.message
are 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
addCustomSpanAttribute
andaddCustomSpanAttributes
to add attributes to the currently executing span.Added new attributes to http outbound spans:
http.statusCode
andhttp.statusText
.Updated W3C Trace Context "Known Issues and Workaround" notes with latest accurate consideration.
Converted unit tests to run via
tap
. Removesmocha
dependency.
Fixes
- Fixed route naming when hapi's
pre
route handlers share functions. - Fixed
child_process
instrumentation so that handlers can be effectively removed when attached via.once()
or manually removed viaremoveListener()
.