Skip to main contentdfsdf

Home/ mailhelps's Library/ Notes/ Check a crashed

Check a crashed

from web site

Check a crashed app for errors by using Error Reporting

Error Reporting provides a single place to monitor error conditions from all apps and services in a Google Cloud project and from Amazon Elastic Compute Cloud (EC2) applications.

In this guide, we learn how to do the following:

Simulate an error from a service in a Cloud project.

Use Error Reporting to view the error and Gmail Numeric Code 6922 issue change the error status so other people on your team know that th issue is being addressed.

Set up notifications so you'll know when new types of errors occur.

For step-by-step guidance on this task directly in Cloud Console, click Guide me:

Guide me

The following sections take you through the same steps as clicking Guide me.

Before you begin

If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.

In the Google Cloud Console, on the project selector page, select or create a Google Cloud project.

Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

Go to project selector

Make sure that billing is enabled for your Cloud project. Learn how to check if billing is enabled on a project.

Open a Cloud Shell for your Cloud project. While it starts, the message Connecting is displayed.

Open Cloud Shell.

Simulate an error

To generate 11 sample errors, run the following script in Cloud Shell:

COUNTER=0

while [  $COUNTER -lt 11 ]; do

gcloud beta error-reporting events report --service tutorial --service-version v$((COUNTER/10+1)) \

--message "java.lang.RuntimeException: Error rendering template $ at com.example.TestClass.test(TestClass.java:51)

at com.example.AnotherClass(AnotherClass.java:25)

at javax.servlet.http.HttpServlet.service (HttpServlet.java:617)

at javax.servlet.http.HttpServlet.service (HttpServlet.java:717)"

if [ $COUNTER -eq 10 ]; then

echo "All sample errors reported."

fi

let COUNTER=COUNTER+1

doneWhen the script finishes generating all of the errors, it prints the following line:

ll sample errors reported.

View the errors in Error Reporting

Go to Go to Error Reporting

The Error Reporting dashboard displays a summary list of each error found and the number of occurrences of each error. When Auto reload is turned on, Error Reporting automatically reloads the error list every 10 seconds.

mailhelps

Saved by mailhelps

on May 31, 22