File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1515
1616# [START error_reporting]
1717# [START error_reporting_quickstart]
18+ # [START error_reporting_setup_python]
1819def simulate_error ():
1920 from google .cloud import error_reporting
2021
@@ -24,16 +25,19 @@ def simulate_error():
2425 raise NameError
2526 except Exception :
2627 client .report_exception ()
28+ # [END error_reporting_setup_python]
2729# [END error_reporting_quickstart]
2830# [END error_reporting]
2931
3032
3133# [START error_reporting_manual]
34+ # [START error_reporting_setup_python_manual]
3235def report_manual_error ():
3336 from google .cloud import error_reporting
3437
3538 client = error_reporting .Client ()
3639 client .report ("An error has occurred." )
40+ # [START error_reporting_setup_python_manual]
3741# [END error_reporting_manual]
3842
3943
You can’t perform that action at this time.
0 commit comments