(urlPath: string)
| 242 | * @returns URL or path without query string or fragment |
| 243 | */ |
| 244 | export function stripUrlQueryAndFragment(urlPath: string): string { |
| 245 | return (urlPath.split(/[?#]/, 1) as [string, ...string[]])[0]; |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * Takes a URL object and returns a sanitized string which is safe to use as span name |
no outgoing calls
no test coverage detected