Skip to content

Commit

Permalink
Update docs/source/developers/emitting-events.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Bates <kbates4@gmail.com>
  • Loading branch information
Zsailer and kevin-bates authored Oct 12, 2023
1 parent f13af30 commit 019e23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/developers/emitting-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _load_jupyter_server_extension(serverapp: ServerApp):
Once the event schema is registered, it is ready to be emitted. Note that the core `event_logger` is included in Jupyter Server's tornado settings and listed as a property of `JupyterHandler` API.

:::{attention}
While you can (technically) create your own instance of an EventLogger from your extension, users/operators will likely only collect events from the instance created by Jupyter Server's `ServerApp`. If you would to provide your own instance, be sure to clearly document how to configure your extension to collect your events.
While you can (technically) create your own instance of an `EventLogger` from your extension, users/operators will likely only collect events from the instance created by Jupyter Server's `ServerApp`. If you would like to provide your own instance, be sure to clearly document how to configure your extension to collect your events.
:::

As an example, you can emit an event from a custom request handler by calling `self.event_logger.emit(...)`:
Expand Down

0 comments on commit 019e23c

Please sign in to comment.