File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
errorreporting/src/main/java/com/example/errorreporting
flexible/errorreporting/src/main/java/com/example/flexible/errorreporting Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 18
18
19
19
// [START errorreporting_quickstart]
20
20
// [START error_reporting_quickstart]
21
+ // [START error_reporting_setup_java]
21
22
22
23
import com .google .cloud .ServiceOptions ;
23
24
import com .google .cloud .errorreporting .v1beta1 .ReportErrorsServiceClient ;
@@ -65,5 +66,6 @@ public static void main(String[] args) throws Exception {
65
66
}
66
67
}
67
68
}
69
+ // [END error_reporting_setup_java]
68
70
// [END error_reporting_quickstart]
69
71
// [END errorreporting_quickstart]
Original file line number Diff line number Diff line change 23
23
import com .google .devtools .clouderrorreporting .v1beta1 .ReportedErrorEvent ;
24
24
25
25
import com .google .devtools .clouderrorreporting .v1beta1 .SourceLocation ;
26
+
26
27
import java .io .IOException ;
27
28
import java .util .logging .Level ;
28
29
import java .util .logging .Logger ;
33
34
import javax .servlet .http .HttpServletResponse ;
34
35
35
36
// [START flex_error_reporting]
37
+ // [START error_reporting_setup_java_appengine_flex]
36
38
@ WebServlet (name = "Error reporting" , value = "/error" )
37
39
public class ErrorReportingExample extends HttpServlet {
38
40
@@ -77,4 +79,5 @@ private void logCustomErrorEvent() {
77
79
}
78
80
}
79
81
}
82
+ // [END error_reporting_setup_java_appengine_flex]
80
83
// [END flex_error_reporting]
You can’t perform that action at this time.
0 commit comments