in pkg/rules/gin/gin_html_setup.go [27:38]
func htmlOnEnter(call api.CallContext, c *gin.Context, code int, name string, obj any) {
if !ginEnabler.Enable() {
return
}
if c == nil {
return
}
lcs := trace.LocalRootSpanFromGLS()
if lcs != nil && c.FullPath() != "" && c.Request != nil && c.Request.URL != nil && (c.FullPath() != c.Request.URL.Path) {
lcs.SetName(c.FullPath())
}
}