在之前版本的 Gin 中,我使用的是 ctx.FullPath()将跟踪指标记录到 Stackdriver 的函数。较新的 1.4.0 版本似乎缺少此功能。我有什么替代选择?
最佳答案
v1.4.0 没有 fullPath
,是后来添加的。您可以将稍后提交添加到您的 Go 模块。将提交添加到 fullPath
添加,使用:
go get github.com/gin-gonic/gin@35e33d3638f9b5a1246dd9c72a99740f5ad4b43b`
关于go - Gin-Gonic v1.4.0 : ctx. FullPath() 缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58743609/