Skip to content

Commit b97181d

Browse files
committed
Documented Sentry integrations
1 parent dc176f0 commit b97181d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/asphalt/exceptions/reporters/sentry.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ class SentryExceptionReporter(ExceptionReporter):
2424
2525
* environment: "development" or "production", depending on the ``__debug__`` flag
2626
27+
Integrations can be added via the ``integrations`` option which is a list where each item is
28+
either an object that implements the :class:`sentry_sdk.integrations.Integration` interface,
29+
or a dictionary where the ``type`` key is a module:varname reference to a class implementing
30+
the aforementioned interface. The ``args`` key, when present, should be a sequence that is
31+
passed to the integration as positional arguments, while the ``kwargs`` key, when present,
32+
should be a mapping of keyword arguments to their values.
33+
2734
The extras passed to this backend are passed to :func:`sentry_sdk.capture_exception` as keyword
2835
arguments.
2936

0 commit comments

Comments
 (0)