Add extra tag if crash was during startup or not

This commit is contained in:
Jaime van Kessel 2019-11-22 15:43:45 +01:00
parent 466c90ca6c
commit 028a60318c
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 7 additions and 1 deletions

View file

@ -65,6 +65,9 @@ class CrashHandler:
if has_started and exception_type in skip_exception_types: if has_started and exception_type in skip_exception_types:
return return
with configure_scope() as scope:
scope.set_tag("during_startup", not has_started)
if not has_started: if not has_started:
self._send_report_checkbox = None self._send_report_checkbox = None
self.early_crash_dialog = self._createEarlyCrashDialog() self.early_crash_dialog = self._createEarlyCrashDialog()

View file

@ -23,7 +23,10 @@ parser.add_argument("--debug",
) )
known_args = vars(parser.parse_known_args()[0]) known_args = vars(parser.parse_known_args()[0])
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564", release = "cura%s" % ApplicationMetadata.CuraVersion, default_integrations=False ) sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
release = "cura%s" % ApplicationMetadata.CuraVersion,
default_integrations = False,
max_breadcrumbs = 200)
if not known_args["debug"]: if not known_args["debug"]:
def get_cura_dir_path(): def get_cura_dir_path():