0
votes

In the previous version of Gin, I was using ctx.FullPath() function to log trace metrics to Stackdriver. The newer 1.4.0 version seems to be missing this function. What alternate option do I have?

1
I found v1.4.0 is not newer. fullpath was added on 26 May, v1.4.0 was released on 8 May.p1gd0g

1 Answers

1
votes

v1.4.0 does not have fullPath, it was added later. You can add a later commit to your Go module. To add the commit where fullPath was added, use:

go get github.com/gin-gonic/gin@35e33d3638f9b5a1246dd9c72a99740f5ad4b43b`