Skip to content

Commit 9a6f62a

Browse files
WanLinLinkamilogorek
authored andcommitted
docs: Update Usage docs to include Domains in Promise support (updated)
1 parent 88d94fa commit 9a6f62a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/usage.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ A context might also correspond to, say, a connection lifecycle or a job being h
9090
Notable keys that you might set include ``user``, ``tags``, and ``extra``.
9191
These types of extra context data are detailed more under :ref:`raven-node-additional-data`.
9292

93-
Since ``domains`` are not supported in native Promise until Node v8.0.0, the Node LTS version ``>=8.0.0`` environment is required if you want to manage different contexts in Promises. Context for regular ``context/wrap`` and instrumentation is working prior to 8.x just fine. It'll just be skipped and will use globally set context data.
93+
Since ``domains`` are not supported in native ``Promise`` until Node.js v8, version ``>=8.0.0`` is required if you want to have an access to the context in ``Promise`` rejections.
94+
When older version of Node.js is used, it'll just be skipped and globally set context will be used instead.
95+
Context for regular error handlers and ``context/wrap`` calls is working in every version, including v0.x.
9496

9597
Tracking Users
9698
--------------

0 commit comments

Comments
 (0)