Skip to content

Commit

Permalink
Merge PR #3178 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by moylop260
  • Loading branch information
OCA-git-bot committed Jan 29, 2025
2 parents 501ba03 + c8e2475 commit 11694e7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions sentry/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_sentry_logging(level=DEFAULT_LOG_LEVEL):


def get_sentry_options():
return [
res = [
SentryOption("dsn", "", str.strip),
SentryOption("transport", DEFAULT_OPTIONS["transport"], select_transport),
SentryOption("logging_level", DEFAULT_LOG_LEVEL, get_sentry_logging),
Expand Down Expand Up @@ -116,9 +116,15 @@ def get_sentry_options():
DEFAULT_OPTIONS["traces_sample_rate"],
to_float_if_defined,
),
SentryOption(
"auto_enabling_integrations",
DEFAULT_OPTIONS["auto_enabling_integrations"],
None,
),
]

if "auto_enabling_integrations" in DEFAULT_OPTIONS:
res.append(
SentryOption(
"auto_enabling_integrations",
DEFAULT_OPTIONS["auto_enabling_integrations"],
None,
)
)

return res

0 comments on commit 11694e7

Please sign in to comment.