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 15
15
16
16
# [START error_reporting]
17
17
# [START error_reporting_quickstart]
18
+ # [START error_reporting_setup_python]
18
19
def simulate_error ():
19
20
from google .cloud import error_reporting
20
21
@@ -24,16 +25,19 @@ def simulate_error():
24
25
raise NameError
25
26
except Exception :
26
27
client .report_exception ()
28
+ # [END error_reporting_setup_python]
27
29
# [END error_reporting_quickstart]
28
30
# [END error_reporting]
29
31
30
32
31
33
# [START error_reporting_manual]
34
+ # [START error_reporting_setup_python_manual]
32
35
def report_manual_error ():
33
36
from google .cloud import error_reporting
34
37
35
38
client = error_reporting .Client ()
36
39
client .report ("An error has occurred." )
40
+ # [START error_reporting_setup_python_manual]
37
41
# [END error_reporting_manual]
38
42
39
43
You can’t perform that action at this time.
0 commit comments