Skip to content

Commit 9f7c161

Browse files
authored
Merge pull request #109 from maykinmedia/issue/fix-sentry-before-send
🔧 [#88] Remove SENTRY_BEFORE_SEND envvar
2 parents f6b9d69 + 2f7f2fa commit 9f7c161

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

open_api_framework/conf/base.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -818,25 +818,13 @@
818818
auto_display_default=False,
819819
)
820820

821-
SENTRY_BEFORE_SEND = config(
822-
"SENTRY_BEFORE_SEND",
823-
None,
824-
help_text=(
825-
"Callback, which allows projects to define their own before_send filters"
826-
),
827-
auto_display_default=False,
828-
)
829-
830821
if SENTRY_DSN:
831822
SENTRY_CONFIG = {
832823
"dsn": SENTRY_DSN,
833824
"release": RELEASE or "RELEASE not set",
834825
"environment": ENVIRONMENT,
835826
}
836827

837-
if SENTRY_BEFORE_SEND:
838-
SENTRY_CONFIG["before_send"] = SENTRY_BEFORE_SEND
839-
840828
sentry_sdk.init(
841829
**SENTRY_CONFIG,
842830
integrations=get_sentry_integrations(),

tests/test_generate_envvar_docs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
* ``CSRF_TRUSTED_ORIGINS``: A list of trusted origins for unsafe requests (e.g. POST). Defaults to: ``[]``.
9999
* ``NOTIFICATIONS_DISABLED``: indicates whether or not notifications should be sent to the Notificaties API for operations on the API endpoints. Defaults to ``True`` for the ``dev`` environment, otherwise defaults to ``False``.
100100
* ``SENTRY_DSN``: URL of the sentry project to send error reports to. Default empty, i.e. -> no monitoring set up. Highly recommended to configure this.
101-
* ``SENTRY_BEFORE_SEND``: Callback, which allows projects to define their own before_send filters.
102101
* ``DISABLE_2FA``: Whether or not two factor authentication should be disabled. Defaults to: ``False``.
103102
* ``LOG_OUTGOING_REQUESTS_EMIT_BODY``: Whether or not outgoing request bodies should be logged. Defaults to: ``True``.
104103
* ``LOG_OUTGOING_REQUESTS_DB_SAVE``: Whether or not outgoing request logs should be saved to the database. Defaults to: ``False``.

0 commit comments

Comments
 (0)