diff --git a/error_reporting/api/report_exception.py b/error_reporting/api/report_exception.py index d1312e61d59..2b7e8f06ba9 100644 --- a/error_reporting/api/report_exception.py +++ b/error_reporting/api/report_exception.py @@ -15,6 +15,7 @@ # [START error_reporting] # [START error_reporting_quickstart] +# [START error_reporting_setup_python] def simulate_error(): from google.cloud import error_reporting @@ -24,16 +25,19 @@ def simulate_error(): raise NameError except Exception: client.report_exception() +# [END error_reporting_setup_python] # [END error_reporting_quickstart] # [END error_reporting] # [START error_reporting_manual] +# [START error_reporting_setup_python_manual] def report_manual_error(): from google.cloud import error_reporting client = error_reporting.Client() client.report("An error has occurred.") +# [START error_reporting_setup_python_manual] # [END error_reporting_manual]