Setting up on Cloud Run

Error Reporting is automatically enabled for Cloud Runapplications. For most programming languages,exceptions written tostderr,stdout, orother logs that include a stack trace inError Reporting-supported languagesare written to Cloud Logging and are automatically detected byError Reporting.If exceptions aren't detected, then we recommend that you use theError Reporting client libraryfor your language. For more information, seeSetup by language.

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

Viewing errors

To view exception logs in Cloud Run, go to theMetrics tab oftheservice detail page. It includes atable showing the top errors for Cloud Run thatError Reporting has detected and aggregated.

For instructions on viewing error and exception data for your application inthe Google Cloud console, go toViewing errors.

Note: If you see the message "Set up Error Reporting" on theError Reporting page,then your Google Cloud project has no error groups to display.

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

Last updated 2025-12-15 UTC.