Vous pouvez utiliser vos bibliothèques clientes sans avoir à fournir explicitement des identifiants.
Les fonctions Cloud Run sont configurées pour utiliser Error Reporting automatiquement. Les exceptions non gérées apparaîtront dans Logging et seront traitées par Error Reporting sans avoir à utiliser une bibliothèque cliente.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (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."]]