(path string)
| 280 | } |
| 281 | |
| 282 | func loadLogInfo(path string) string { |
| 283 | path = replaceStr(path, "/api/v2", "/core", "/xpack", "/enterprise") |
| 284 | if !strings.Contains(path, "/") { |
| 285 | return "" |
| 286 | } |
| 287 | pathArrays := strings.Split(path, "/") |
| 288 | if len(pathArrays) < 2 { |
| 289 | return "" |
| 290 | } |
| 291 | return pathArrays[1] |
| 292 | } |
| 293 | |
| 294 | func normalizeOperationPath(reqPath string) string { |
| 295 | pathItem := strings.TrimPrefix(reqPath, "/api/v2") |
no test coverage detected