in pkg/rules/iris/router_setup.go [26:38]
func irisHttpOnEnter(call api.CallContext, _ interface{}, iCtx *iContext.Context) {
if !irisEnabler.Enable() {
return
}
if iCtx == nil {
return
}
r := iCtx.Request()
lcs := trace.LocalRootSpanFromGLS()
if lcs != nil && r != nil && iCtx.Path() != "" && r.URL != nil && (iCtx.Path() != r.URL.Path) {
lcs.SetName(iCtx.Path())
}
}