This repository was archived by the owner on Jan 21, 2026. It is now read-only.
v2.9.0
This version features a number of new changes:
span.endSpannow accepts an optionalDateargument to specify the end time of a span (instead of the current time)- A few new options are now accepted for
config.clsMechanism. See the inline documentation for details. - Experimental
async_hooks-based tracing has been changed in the following ways:- Except for
PROMISE-type async resources, thetriggerIdfield will always be used to determine the current resource's parent for context propagation purposes. - Root span context is now determined by the current execution ID, rather than the ID of the last async resource for which the
beforehook was called. In practice, this should yield no changes unless code is running after an async resource's scope has been exited, but before a new one has been entered.- This obviates the
beforehook entirely, so it has been removed.
- This obviates the
- Except for
Commits
- [
be8f4e651a] - doc: clear the changelog (#756) (Kelvin Jin) #756 - [
f34aac5ba6] - feat: add options to set the cls mechanism to async-hooks or async-listener (#741) (Kelvin Jin) #741 - [
ebd33d802e] - refactor: address cls TODOs (#753) (Kelvin Jin) #753 - [
807d4ad33f] - fix: fixup for node 8.11.2 (#755) (Kelvin Jin) #755 - [
4733a68b67] - chore(package): update @types/node to version 10.0.9 (#750) (greenkeeper[bot]) #750 - [
4c1797101d] - refactor: address TODOs related to spans (#749) (Kelvin Jin) #749 - [
000643fe21] - feat: add singular cls option (#748) (Kelvin Jin) #748 - [
319642abf5] - feat: allow timestamps to be passed to endSpan (#747) (Kelvin Jin) #747 - [
908e431017] - doc: update status badges (#744) (Kelvin Jin) #744 - [
6c16beb44e] - test: make it clear that some methods are test-only (#746) (Kelvin Jin) #746 - [
a29b985559] - chore: fix types and stop testing on node 10 (#745) (Kelvin Jin) #745 - [
0d472e6700] - test: refactor test-span-data (#743) (Kelvin Jin) #743 - [
fd122a68e2] - test: update contributing guide and add require test (#738) (Kelvin Jin) #738 - [
0e8c53b52b] - chore(package): update @types/is to version 0.0.20 (#742) (greenkeeper[bot]) #742 - [
94e5cb2104] - refactor: make logger always last arg (#739) (Kelvin Jin) #739 - [
79ab435a98] - fix: adjust async_hooks cls behavior (#734) (Kelvin Jin) #734 - [
d8f36118f3] - doc: mention that tracing doesn't work oob with gcf (#735) (Kelvin Jin) #735