Skip to content

Commit 431cb4c

Browse files
committed
s/getName/getTransacionName in react router
1 parent 572e982 commit 431cb4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react/src/reactrouter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function reactRouterInstrumentation(
6464
allRoutes: RouteConfig[] = [],
6565
matchPath?: MatchPath,
6666
): ReactRouterInstrumentation {
67-
function getName(pathname: string): string {
67+
function getTransactionName(pathname: string): string {
6868
if (allRoutes === [] || !matchPath) {
6969
return pathname;
7070
}
@@ -83,7 +83,7 @@ function reactRouterInstrumentation(
8383
return (customStartTransaction, startTransactionOnPageLoad = true, startTransactionOnLocationChange = true): void => {
8484
if (startTransactionOnPageLoad && global && global.location) {
8585
activeTransaction = customStartTransaction({
86-
name: getName(global.location.pathname),
86+
name: getTransactionName(global.location.pathname),
8787
op: 'pageload',
8888
tags: {
8989
'routing.instrumentation': name,
@@ -102,7 +102,7 @@ function reactRouterInstrumentation(
102102
};
103103

104104
activeTransaction = customStartTransaction({
105-
name: getName(location.pathname),
105+
name: getTransactionName(location.pathname),
106106
op: 'navigation',
107107
tags,
108108
});

0 commit comments

Comments
 (0)