gpt4 book ai didi

google-cloud-platform - Google Stackdriver 错误报告和源代码快照

转载 作者:行者123 更新时间:2023-12-02 13:56:54 27 4
gpt4 key购买 nike

Google Stack 驱动程序错误报告是否能够将错误堆栈跟踪与导致错误的源代码版本相关联?

我们找不到任何可以让您上传给定版本的源代码或“符号文件”的东西,以便在发生错误时可以显示该错误周围的几行代码。仅具有显示“main.py line 50”的堆栈跟踪并没有帮助,因为需要花费大量时间来找出导致问题的代码版本,然后返回 git 并找出“line 50”的含义当时。

Sentry.io 就是这样做的。对于每个版本,您upload your source code当发生错误时,它们会为您匹配源代码与错误,您可以在错误详细信息页面中看到错误周围的代码行。这是一张图片。 (请注意,除了堆栈跟踪行adapters.py第487行之外, Sentry 还向您显示源代码)enter image description here

据我所知,Stackdrive 没有此功能。对吗?

最佳答案

我认为您正在寻找的是 Stackdriver Debugger

Stackdriver Debugger is a feature of Google Cloud Platform that lets you inspect the state of an application, at any code location, without stopping or slowing down the running app. Stackdriver Debugger makes it easier to view the application state without adding logging statements. You can use Stackdriver Debugger with any deployment of your application, including test, development, and production. The debugger adds less than 10ms to the request latency only when the application state is captured. In most cases, this is not noticeable by users.

关于google-cloud-platform - Google Stackdriver 错误报告和源代码快照,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49607365/

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