在 Cloud Run 上进行设置
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
系统会自动为 Cloud Run 应用启用 Error Reporting。对于大多数编程语言,写入 stderr
、stdout
或其他日志且包含 Error Reporting 支持的语言的堆栈轨迹的异常会被写入 Cloud Logging,并由 Error Reporting 自动检测。如果未检测到异常,我们建议您使用适用于您的语言的 Error Reporting 客户端库。如需了解详情,请参阅按语言设置。
如需了解手动报告错误事件的详情,请参阅设置 Cloud Logging 中的错误格式。
查看错误
要在 Cloud Run 中查看异常日志,请转到服务详情页面上的指标标签页。其中包含的表格显示了 Error Reporting 检测到并汇总的主要 Cloud Run 错误。
如需了解如何在 Google Cloud 控制台中查看应用的错误和异常数据,请参阅查看错误。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-16。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u6700\u540e\u66f4\u65b0\u65f6\u95f4 (UTC)\uff1a2023-12-16\u3002"}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2023-12-16。"]]