Skip to content

Commit 6a42bb0

Browse files
committed
Updated the usage docs slightly for the context to bring it in line with other clients.
1 parent 104594a commit 6a42bb0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/index.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ problematic code with a ``try...catch`` block and
6565
There are more ways to report errors. For a complete guide on this see
6666
:ref:`raven-js-reporting-errors`.
6767

68-
Tracking Users
68+
Adding Context
6969
--------------
7070

7171
While a user is logged in, you can tell Sentry to associate errors with
@@ -82,6 +82,10 @@ to figure out which users are affected.
8282
If at any point, the user becomes unauthenticated, you can call
8383
``Raven.setUserContext()`` with no arguments to remove their data.
8484

85+
Other similar methods are ``Raven.setExtraContext`` and
86+
``Raven.setTagsContext`` as well as ``Raven.context``. See
87+
:ref:`raven-js-additional-context` for more info.
88+
8589
Dealing with Minified Source Code
8690
---------------------------------
8791

docs/usage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ Capturing Messages
9494
9595
Raven.captureMessage('Broken!')
9696
97+
.. _raven-js-additional-context:
98+
9799
Passing Additional Data
98100
-----------------------
99101

0 commit comments

Comments
 (0)