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 1818
1919// [START errorreporting_quickstart]
2020// [START error_reporting_quickstart]
21+ // [START error_reporting_setup_java]
2122
2223import com .google .cloud .ServiceOptions ;
2324import com .google .cloud .errorreporting .v1beta1 .ReportErrorsServiceClient ;
@@ -65,5 +66,6 @@ public static void main(String[] args) throws Exception {
6566 }
6667 }
6768}
69+ // [END error_reporting_setup_java]
6870// [END error_reporting_quickstart]
6971// [END errorreporting_quickstart]
Original file line number Diff line number Diff line change 2323import com .google .devtools .clouderrorreporting .v1beta1 .ReportedErrorEvent ;
2424
2525import com .google .devtools .clouderrorreporting .v1beta1 .SourceLocation ;
26+
2627import java .io .IOException ;
2728import java .util .logging .Level ;
2829import java .util .logging .Logger ;
3334import javax .servlet .http .HttpServletResponse ;
3435
3536// [START flex_error_reporting]
37+ // [START error_reporting_setup_java_appengine_flex]
3638@ WebServlet (name = "Error reporting" , value = "/error" )
3739public class ErrorReportingExample extends HttpServlet {
3840
@@ -77,4 +79,5 @@ private void logCustomErrorEvent() {
7779 }
7880 }
7981}
82+ // [END error_reporting_setup_java_appengine_flex]
8083// [END flex_error_reporting]
You can’t perform that action at this time.
0 commit comments