Skip to content

Commit a5158e6

Browse files
authored
New region tags (#1843)
1 parent abd191b commit a5158e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

error_reporting/api/report_exception.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
# [START error_reporting]
1717
# [START error_reporting_quickstart]
18+
# [START error_reporting_setup_python]
1819
def 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]
3235
def 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

0 commit comments

Comments
 (0)