File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -993,6 +993,15 @@ def capture_exception(
993993 )
994994 all_exceptions_with_trace_and_in_app = event ["exception" ]["values" ]
995995
996+ properties = {
997+ "$exception_type" : all_exceptions_with_trace_and_in_app [0 ].get ("type" ),
998+ "$exception_message" : all_exceptions_with_trace_and_in_app [0 ].get (
999+ "value"
1000+ ),
1001+ "$exception_list" : all_exceptions_with_trace_and_in_app ,
1002+ ** properties ,
1003+ }
1004+
9961005 context_enabled = get_code_variables_enabled_context ()
9971006 context_mask = get_code_variables_mask_patterns_context ()
9981007 context_ignore = get_code_variables_ignore_patterns_context ()
@@ -1021,15 +1030,6 @@ def capture_exception(
10211030 ignore_patterns = ignore_patterns ,
10221031 )
10231032
1024- properties = {
1025- "$exception_type" : all_exceptions_with_trace_and_in_app [0 ].get ("type" ),
1026- "$exception_message" : all_exceptions_with_trace_and_in_app [0 ].get (
1027- "value"
1028- ),
1029- "$exception_list" : all_exceptions_with_trace_and_in_app ,
1030- ** properties ,
1031- }
1032-
10331033 if self .log_captured_exceptions :
10341034 self .log .exception (exception , extra = kwargs )
10351035
You can’t perform that action at this time.
0 commit comments