Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration TraceCLSMechanism

An enumeration of the possible mechanisms for supporting context propagation through continuation-local storage.

Index

Enumeration members

Enumeration members

ASYNC_HOOKS

ASYNC_HOOKS: = "async-hooks"

Use the AsyncHooksCLS class to propagate root span context. Only available in Node 8+.

ASYNC_LISTENER

ASYNC_LISTENER: = "async-listener"

Use the AsyncListenerCLS class to propagate root span context. Note that continuation-local-storage should be loaded as the first module.

NONE

NONE: = "none"

Do not write root span context; in other words, querying the current root span context will always result in a default value.

SINGULAR

SINGULAR: = "singular"

Do not use any special mechanism to propagate root span context. Only a single root span can be open at a time.

Generated using TypeDoc