func nextOnEnter()

in pkg/rules/gin/gin_server_setup.go [27:38]


func nextOnEnter(call api.CallContext, c *gin.Context) {
	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())
	}
}