Setting up on Cloud Run

Error Reporting is automatically enabled for Cloud Run applications. For most programming languages, exceptions written to stderr, stdout, or other logs that include a stack trace in Error Reporting-supported languages are written to Cloud Logging and are automatically detected by Error Reporting. If exceptions aren't detected, then we recommend that you use the Error Reporting client library for your language. For more information, see Setup by language.

For details on manually reporting error events, go to Formatting errors in Cloud Logging.

Viewing errors

To view exception logs in Cloud Run, go to the Metrics tab of the service detail page. It includes a table showing the top errors for Cloud Run that Error Reporting has detected and aggregated.

For instructions on viewing error and exception data for your application in the Google Cloud console, go to Viewing errors.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月30日 UTC.