@@ -24,7 +24,7 @@ import {
2424 finalizeNavigationSpanFromHydratedRouter ,
2525 updateNavigationSpanUrlFromLocation ,
2626} from './utils' ;
27- import { URL_TEMPLATE } from '@sentry/conventions/attributes' ;
27+ import { URL_FULL , URL_TEMPLATE } from '@sentry/conventions/attributes' ;
2828
2929const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window ;
3030
@@ -127,7 +127,7 @@ export function createSentryClientInstrumentation(
127127 const result = await callNavigate ( ) ;
128128 if ( result . status === 'error' && result . error instanceof Error ) {
129129 captureInstrumentationError ( result , captureErrors , 'react_router.navigate' , {
130- 'url.full' : info . currentUrl ,
130+ [ URL_FULL ] : info . currentUrl ,
131131 } ) ;
132132 }
133133 return ;
@@ -174,7 +174,7 @@ export function createSentryClientInstrumentation(
174174 navigationSpan . setStatus ( { code : SPAN_STATUS_ERROR , message : 'internal_error' } ) ;
175175 }
176176 captureInstrumentationError ( result , captureErrors , 'react_router.navigate' , {
177- 'url.full' : WINDOW . location ?. pathname || info . currentUrl ,
177+ [ URL_FULL ] : WINDOW . location ?. pathname || info . currentUrl ,
178178 } ) ;
179179 }
180180 } finally {
@@ -210,7 +210,7 @@ export function createSentryClientInstrumentation(
210210 navigationSpan . setStatus ( { code : SPAN_STATUS_ERROR , message : 'internal_error' } ) ;
211211 }
212212 captureInstrumentationError ( result , captureErrors , 'react_router.navigate' , {
213- 'url.full' : toPath ,
213+ [ URL_FULL ] : toPath ,
214214 } ) ;
215215 }
216216 return ;
@@ -230,7 +230,7 @@ export function createSentryClientInstrumentation(
230230 if ( result . status === 'error' && result . error instanceof Error ) {
231231 span . setStatus ( { code : SPAN_STATUS_ERROR , message : 'internal_error' } ) ;
232232 captureInstrumentationError ( result , captureErrors , 'react_router.fetcher' , {
233- 'url.full' : info . href ,
233+ [ URL_FULL ] : info . href ,
234234 } ) ;
235235 }
236236 } ,
@@ -264,7 +264,7 @@ export function createSentryClientInstrumentation(
264264 if ( result . status === 'error' && result . error instanceof Error ) {
265265 span . setStatus ( { code : SPAN_STATUS_ERROR , message : 'internal_error' } ) ;
266266 captureInstrumentationError ( result , captureErrors , 'react_router.client_loader' , {
267- 'url.full' : urlPath ,
267+ [ URL_FULL ] : urlPath ,
268268 } ) ;
269269 }
270270 } ,
@@ -290,7 +290,7 @@ export function createSentryClientInstrumentation(
290290 if ( result . status === 'error' && result . error instanceof Error ) {
291291 span . setStatus ( { code : SPAN_STATUS_ERROR , message : 'internal_error' } ) ;
292292 captureInstrumentationError ( result , captureErrors , 'react_router.client_action' , {
293- 'url.full' : urlPath ,
293+ [ URL_FULL ] : urlPath ,
294294 } ) ;
295295 }
296296 } ,
@@ -326,7 +326,7 @@ export function createSentryClientInstrumentation(
326326 if ( result . status === 'error' && result . error instanceof Error ) {
327327 span . setStatus ( { code : SPAN_STATUS_ERROR , message : 'internal_error' } ) ;
328328 captureInstrumentationError ( result , captureErrors , 'react_router.client_middleware' , {
329- 'url.full' : urlPath ,
329+ [ URL_FULL ] : urlPath ,
330330 } ) ;
331331 }
332332 } ,
0 commit comments