Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Pelaporan Error diaktifkan secara otomatis untuk aplikasi Cloud Run. Untuk sebagian besar bahasa pemrograman, pengecualian yang ditulis ke stderr, stdout, atau log lainnya yang menyertakan pelacakan tumpukan dalam bahasa yang didukung Error Reporting akan ditulis ke Cloud Logging dan otomatis terdeteksi oleh Error Reporting.
Jika pengecualian tidak terdeteksi, sebaiknya gunakan
library klien Pelaporan Error
untuk bahasa Anda. Untuk mengetahui informasi selengkapnya, lihat
Penyiapan menurut bahasa.
Untuk melihat log pengecualian di Cloud Run, buka tab Metrics di
halaman detail layanan. Halaman ini mencakup
tabel yang menampilkan error teratas untuk Cloud Run yang
telah dideteksi dan digabungkan oleh Error Reporting.
Untuk petunjuk tentang cara melihat data error dan pengecualian untuk aplikasi Anda di
konsol Google Cloud , buka
Melihat error.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 UTC."],[[["\u003cp\u003eError Reporting is automatically enabled for Cloud Run applications, capturing exceptions written to \u003ccode\u003estderr\u003c/code\u003e, \u003ccode\u003estdout\u003c/code\u003e, or logs with stack traces.\u003c/p\u003e\n"],["\u003cp\u003eIf exceptions aren't automatically detected, it is recommended to use the Error Reporting client library for your programming language.\u003c/p\u003e\n"],["\u003cp\u003eYou can view a table of the top errors detected and aggregated by Error Reporting in the \u003cstrong\u003eMetrics\u003c/strong\u003e tab of the Cloud Run service detail page.\u003c/p\u003e\n"],["\u003cp\u003eDetailed instructions on how to report error events manually and view error data can be found in the provided documentation links.\u003c/p\u003e\n"]]],[],null,["Error Reporting is automatically enabled for Cloud Run\napplications. For most programming languages,\nexceptions written to `stderr`, `stdout`, or\nother logs that include a stack trace in\nError Reporting-supported languages\nare written to Cloud Logging and are automatically detected by\nError Reporting.\nIf exceptions aren't detected, then we recommend that you use the\nError Reporting client library\nfor your language. For more information, see\n[Setup by language](/error-reporting/docs/setup#setup-by-language).\n\nFor details on manually reporting error events, go to\n[Formatting errors in Cloud Logging](/error-reporting/docs/formatting-error-messages).\n\nViewing errors\n\nTo view exception logs in Cloud Run, go to the **Metrics** tab of\nthe [service detail page](/run/docs/managing/services#details). It includes a\ntable showing the top errors for Cloud Run that\nError Reporting has detected and aggregated.\n\nFor instructions on viewing error and exception data for your application in\nthe Google Cloud console, go to\n[Viewing errors](/error-reporting/docs/viewing-errors).\n\n\u003cbr /\u003e\n\n| **Note** : If you see the message \"Set up Error Reporting\" on the **Error Reporting** page, then your Google Cloud project has no error groups to display.\n\n\u003cbr /\u003e"]]