gpt4 book ai didi

google-cloud-platform - 有没有办法检查 GCP (HTTP) 云函数中的请求/响应 header 而不显式记录它们?

转载 作者:行者123 更新时间:2023-12-05 01:07:41 25 4
gpt4 key购买 nike

我都试过了LoggingTraces但还没有找到查看请求 header 的方法。有没有比显式记录 req.headers 更好的方法?

最佳答案

Google Cloud 会自动记录服务的技术信息(您可以在 audit logs 配置中增加日志详细程度)。标准用法,在您的服务(Cloud Function、Cloud Run、App Engine)上执行的请求没有它们的内容(正文和标题)已记录。只有系统事件:“已收到来自此 IP 的 post 请求,HTTP 响应为 200,处理时间为 500ms”。

关于google-cloud-platform - 有没有办法检查 GCP (HTTP) 云函数中的请求/响应 header 而不显式记录它们?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66998864/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com