Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Error Reporting menggabungkan error yang terjadi di layanan cloud yang sedang berjalan. Error ini dilaporkan oleh
Error Reporting API atau disimpulkan
sebagai error saat Error Reporting memeriksa entri log untuk pola teks umum seperti stack trace. Error Reporting mengelompokkan error yang dianggap memiliki penyebab utama yang sama.
Error Reporting diaktifkan secara otomatis.
Error Reporting mengambil sampel hingga 1.000 error per jam.
Jika batas ini tercapai, jumlah yang ditampilkan diperkirakan. Jika terlalu banyak peristiwa diterima, Error Reporting akan mengambil sampel hingga 100 error per jam dan terus mengekstrapolasi jumlahnya.
Saat Error Reporting menganalisis entri log
Error Reporting adalah layanan global yang dibangun di atas
Cloud Logging dan dapat menganalisis entri log jika semua hal berikut terpenuhi:
Assured Workloads dinonaktifkan. Untuk mengetahui informasi selengkapnya, lihat Ringkasan Assured Workloads.
Kunci enkripsi yang dikelola pelanggan (CMEK)
dinonaktifkan di semua bucket log yang menyimpan entri log. Error Reporting tidak dapat menyimpan entri log di bucket log yang mengaktifkan CMEK. Untuk mengetahui informasi tentang cara
menentukan konfigurasi CMEK untuk bucket log, lihat
Memverifikasi pengaktifan kunci.
Bucket log memenuhi salah satu hal berikut:
Bucket log disimpan dalam project yang sama dengan tempat asal entri log.
Entri log diarahkan ke project, lalu project tersebut menyimpan entri log tersebut
dalam bucket log yang dimilikinya.
Cara pengelompokan error
Saat mengevaluasi entri log, Pelaporan Error akan mengabaikan
entri log dengan kondisi berikut:
Di lingkungan standar App Engine, error yang dicatat dengan tingkat keparahan lebih rendah dari
ERROR akan diabaikan.
Frame stack yang tidak dimiliki oleh pengguna akan diabaikan (misalnya, frame yang
termasuk dalam library publik).
Urutan berulang dari satu atau beberapa frame stack diganti dengan satu
kemunculan urutan tersebut.
Metode dan simbol yang diperkenalkan oleh compiler dihapus.
Selanjutnya, Error Reporting mengikuti aturan berikut untuk mengelompokkan error:
Pengecualian dikelompokkan jika memiliki jenis pengecualian yang sama dan stack yang serupa.
Stack trace diabaikan untuk pengecualian yang biasanya tidak terkait dengan
lokasi sumber tempat terjadinya.
Error tanpa stack pengecualian dikelompokkan bersama jika dibuat oleh
entri log yang sama, yang diperkirakan oleh lokasi sumber tempat error dilaporkan
dari (reportLocation).
Secara khusus, aturan pengelompokan berikut diterapkan dalam urutan ini:
Jenis error
Dikelompokkan berdasarkan
Error yang disebabkan oleh masalah umum di lingkungan.
Error dengan stack trace. Dalam kasus pengecualian bertingkat, pengecualian
paling dalam yang akan dipertimbangkan.
Contoh:
runtime error: index out of range
package1.func1()
file1:20
package2.func2()
file2:33
Dikelompokkan menurut jenis pengecualian dan 5 frame teratas.
Error tanpa pelacakan tumpukan, tetapi dengan pesan.
Contoh:
runtime error: index out of range
func1()
Dikelompokkan menurut pesan dan (jika ada) nama fungsi. Hanya 3 token literal
pertama dari pesan yang dipertimbangkan. Dalam contoh di sebelah kiri, nilai ini
adalah runtime, error, dan index.
Regionalitas data
Jika Anda menyiapkan Assured Workloads
untuk persyaratan residensi data atau Tingkat Dampak 4 (IL4), maka Google Cloud akan otomatis menonaktifkan
Pelaporan Error.
Di Cloud Logging, Anda dapat meregionalkan log dengan merutekannya ke lokasi tertentu. Di halaman Grup Error,
Error Reporting mengatur dan menampilkan grup error berdasarkan
region bucket log yang berisi entri log. Misalnya,
grup error yang tercantum di us-central-1 hanya berisi log error
yang merupakan bagian dari bucket log di us-central-1. Grup error global hanya berisi log error yang merupakan bagian dari bucket log di region global.
Untuk memfilter wilayah grup error yang ditampilkan di halaman Grup Error,
pilih nilai dari menu Wilayah. Menu ini memiliki nilai default
global.
[[["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-09-03 UTC."],[[["\u003cp\u003eError Reporting aggregates and groups errors from cloud services, either reported via its API or inferred from log entries that match common error patterns like stack traces.\u003c/p\u003e\n"],["\u003cp\u003eThe service is automatically enabled, sampling up to 1,000 errors per hour, and if this limit is exceeded, it scales down to 100 errors per hour while extrapolating counts.\u003c/p\u003e\n"],["\u003cp\u003eError Reporting's log analysis depends on certain conditions, including disabled Assured Workloads and customer-managed encryption keys (CMEK) on log buckets, unless the Error Reporting API or client libraries are utilized.\u003c/p\u003e\n"],["\u003cp\u003eError grouping is based on factors like exception type, stack trace similarity, message content, and source location, with specific rules for errors with or without stack traces.\u003c/p\u003e\n"],["\u003cp\u003eError Reporting is a global service, but error groups can be filtered by the region of the log bucket containing the error logs, though the service itself can access error data from any region.\u003c/p\u003e\n"]]],[],null,["Error Reporting aggregates errors produced in your running cloud\nservices. These errors are either reported by the\n[Error Reporting API](/error-reporting/reference/rest) or are inferred\nto be errors when Error Reporting inspects log entries for common\ntext patterns such as stack traces. Error Reporting groups errors\nwhich are considered to have the same root cause.\n\nError Reporting is automatically enabled.\n\nError Reporting samples up to 1,000 errors per hour.\nWhen this\nlimit is reached, the displayed counts are estimated. If too many events are\nreceived, then Error Reporting samples up to\n100 errors per hour and continue to extrapolate the counts.\n\nWhen Error Reporting analyzes log entries\n\nError Reporting is a global service built on\nCloud Logging and can analyze log entries when all of the following are true:\n\n- Assured workloads are disabled. For more information, see [Overview of Assured Workloads](/assured-workloads/docs/overview).\n- [Customer-managed encryption keys (CMEK)](/logging/docs/routing/managed-encryption-storage) are disabled on all log buckets that store the log entry. Error Reporting can't store log entries in log buckets that have CMEK enabled. For information about how to determine the CMEK configuration for a log bucket, see [Verify key enablement](/logging/docs/routing/managed-encryption-storage#verify-key).\n- The log bucket satisfies one of the following:\n - The log bucket is stored in the same project where the log entries originated.\n - The log entries were routed to a project, and then that project stored those log entries in a log bucket that it owns.\n\n\u003cbr /\u003e\n\nHow errors are grouped\n\nWhen Error Reporting evaluates log entries, it ignores\nlog entries with the following conditions:\n\n- On App Engine standard environment, errors logged with a severity lower than `ERROR` are ignored.\n- Stack frames which are not owned by the user are ignored (for instance, those that belong to public libraries).\n- Any repeating sequence of one or more stack frames is replaced by a single occurrence of that sequence.\n- Compiler-introduced methods and symbols are removed.\n\nNext, Error Reporting follows these rules to group errors:\n\n- Exceptions are grouped together if they have the same exception type and similar stacks.\n- The stack trace is ignored for exceptions that are typically unrelated to the source location where they occur.\n- Errors without an exception stack are grouped together if they were created by the same log entry, approximated by the source location it was reported from (`reportLocation`).\n\nSpecifically, the following grouping rules are applied in this order:\n\n| Error type | Grouped by |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Errors caused by a general problem in the environment** . For example, App Engine specific problems: ``` com.google.apphosting.runtime.HardDeadlineExceededError ``` ``` com.google.appengine.api.datastore.DatastoreTimeoutException ``` Java problems: ``` java.util.concurrent.CancellationException ``` | Grouped by exception type. |\n| **Errors with a stack trace** . In the case of nested exceptions, the innermost exception is considered. For example: ``` runtime error: index out of range package1.func1() file1:20 package2.func2() file2:33 ``` | Grouped by exception type and the 5 top-most frames. |\n| **Errors without a stack trace, but with a message.** For example: ``` runtime error: index out of range func1() ``` | Grouped by message and (if present) function name. Only the first 3 literal tokens of the message are considered. In the example to the left, these are `runtime`, `error`, and `index`. |\n\nData regionality\n\nIf you set up [Assured Workloads](/assured-workloads)\nfor data-residency or [Impact Level 4 (IL4)](/security/compliance/disa)\nrequirements, then Google Cloud automatically disables\nError Reporting.\n\nIn Cloud Logging, you can [regionalize your logs](/logging/docs/regionalized-logs) by routing\nthem to a specific location. On the **Error Groups** page,\nError Reporting organizes and shows error groups based on the\nregion of the log bucket that contains the log entries. For example,\nan error group listed under `us-central-1` contains only error logs\nthat are part of a log bucket in `us-central-1`. Global error groups contain\nonly error logs that are part of a log bucket in the `global` region.\n\nTo filter the region of the error groups displayed on the **Error Groups** page,\nselect a value from the **Region** menu. This menu has a default value of\n`global`.\n\n| **Note:** Because Error Reporting is a global service, error groups can be accessed from any region. This behavior isn't configurable.\n\nWhat's next\n\n- [Collect error data by using Error Reporting](/error-reporting/docs/setup)\n- [View errors](/error-reporting/docs/viewing-errors)"]]