in http/common/logging/logging.go [32:44]
func sanitizeResourceType(rt string, rawURL string) string {
// Keep only the substring after the last slash.
if idx := strings.LastIndex(rt, "/"); idx != -1 && idx < len(rt)-1 {
rt = rt[idx+1:]
}
// Remove everything after the first '?'.
if idx := strings.Index(rt, "?"); idx != -1 {
rt = rt[:idx]
}
rt = strings.ToLower(rt)
return rt
}