File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ function instrumentSvelteKitFetch(originalFetch: SvelteKitFetch): SvelteKitFetch
182
182
const patchedFetchArgs = [ input , patchedInit ] ;
183
183
184
184
if ( createSpan ) {
185
+ U ;
185
186
fetchPromise = trace (
186
187
{
187
188
name : `${ requestData . method } ${ requestData . url } ` , // this will become the description of the span
Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ export function getSanitizedUrlString(url: PartialURL): string {
68
68
( host &&
69
69
host
70
70
// Always filter out authority
71
- . replace ( / ^ .* : .* @ / , '[filtered]:[filtered]@' )
71
+ // Regex partially taken from: https://stackoverflow.com/a/6165138
72
+ . replace ( / (?: ( [ ^ @ ] * ) @ ) / , '[filtered]:[filtered]@' )
72
73
// Don't show standard :80 (http) and :443 (https) ports to reduce the noise
73
74
. replace ( ':80' , '' )
74
75
. replace ( ':443' , '' ) ) ||
You can’t perform that action at this time.
0 commit comments