Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion boilerplates/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@ def init(cls, *args, **kwargs) -> None:
if not cls.is_dsn_set():
_LOG.info('Sentry DSN is not set, skipping Sentry SDK initialisation')
return
assert not args, \
'positional arguments are not supported, instead please use class attributes,' \
' environment variables and for parameters which cannot be set via either' \
' please use keyword arguments'
sentry_sdk.init(
*args, dsn=cls._get_str_param('dsn'),
dsn=cls._get_str_param('dsn'),
release=cls._get_str_param('release'),
environment=cls._get_str_param('environment'),
integrations=cls.integrations,
Expand Down
Loading