Skip to content

Commit

Permalink
docs: add note about request context not having any impact unless you…
Browse files Browse the repository at this point in the history
… actually listen for the event
  • Loading branch information
cyberw committed Aug 28, 2024
1 parent aea9d63 commit 44f15db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/extending-locust.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ Context from a value in the response, using :ref:`catch_response <catch-response
with self.client.get("/", catch_response=True) as resp:
resp.request_meta["context"]["requestId"] = resp.json()["requestId"]

.. note::

Request context doesn't change how Locust's regular statistics are calculated. Logging/reporting solutions like `locust.cloud <https://locust.cloud/>`_ use the above mechanic to save the context to a database.

Adding Web Routes
==================
Expand Down

0 comments on commit 44f15db

Please sign in to comment.