Library klien Anda dapat digunakan tanpa perlu memberikan
kredensial secara eksplisit.
Fungsi Cloud Run dikonfigurasi untuk menggunakan Error Reporting secara otomatis. Pengecualian yang tidak ditangani akan muncul di Logging dan diproses oleh Error Reporting tanpa perlu menggunakan library klien.
[[["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\u003eCloud Run functions automatically grants the Error Reporting Writer role to your default service account.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries can be used without explicitly providing credentials in Cloud Run.\u003c/p\u003e\n"],["\u003cp\u003eError Reporting is automatically configured for Cloud Run functions.\u003c/p\u003e\n"],["\u003cp\u003eUnhandled exceptions in Cloud Run will appear in Logging and be processed by Error Reporting.\u003c/p\u003e\n"],["\u003cp\u003eLog entries containing a stack trace with a severity of ERROR or no specified log severity are automatically processed.\u003c/p\u003e\n"]]],[],null,["[Cloud Run functions](/functions/docs) grants the\n[Error Reporting Writer role](/error-reporting/docs/iam#errorreporting.writer) (`roles/errorreporting.writer`)\nto your default service account automatically.\n\nYour client libraries can be used without needing to explicitly provide\ncredentials.\n\nCloud Run functions is configured to use Error Reporting\nautomatically. Unhandled exceptions will appear in Logging and\nbe processed by Error Reporting without needing to use a client\nlibrary.\n| **Note:** Log entries are processed automatically if they contain a stack trace and they specify either no log severity or a log severity of at least `ERROR`, without needing to use a client library."]]