Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

v2.9.0

Choose a tag to compare

@kjin kjin released this 18 May 20:04
bc4895f

This version features a number of new changes:

  • span.endSpan now accepts an optional Date argument 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, the triggerId field 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 before hook 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 before hook entirely, so it has been removed.

Commits