Skip to content

Commit 05ed518

Browse files
committed
exclude keyboard interrupt
we don't want this event + slows down cleanup, and the user might exit the cleanup before we get a chance
1 parent 7729e26 commit 05ed518

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codeflash/telemetry/sentry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def init_sentry(enabled: bool = False, exclude_errors: bool = False) -> None: #
1212
if exclude_errors
1313
else logging.ERROR, # Otherwise, error logs will create sentry events
1414
)
15+
1516
sentry_sdk.init(
1617
dsn="https://4b9a1902f9361b48c04376df6483bc96@o4506833230561280.ingest.sentry.io/4506833262477312",
1718
integrations=[sentry_logging],
@@ -22,4 +23,5 @@ def init_sentry(enabled: bool = False, exclude_errors: bool = False) -> None: #
2223
# of sampled transactions.
2324
# We recommend adjusting this value in production.
2425
profiles_sample_rate=1.0,
26+
ignore_errors=[KeyboardInterrupt],
2527
)

0 commit comments

Comments
 (0)