在本集中,我们将一些自定义数据记录到 Google Cloud Logging 中。我们演示了一个 Python 示例,该示例使用自定义 gRPC 拦截器将请求和响应数据以及一些元数据(例如成功状态和经过的时间)提取到自定义日志中。然后,我们会使用 Google Cloud Logging API 将这些日志发送到云端。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2022-09-29。"],[[["This episode demonstrates how to log custom data to Google Cloud Logging using Python."],["The example uses a gRPC interceptor to capture request/response data, success status, and elapsed time for logging."],["Custom logs are generated and sent to Google Cloud using the Google Cloud Logging API."]]],[]]