diff --git a/utils.js b/utils.js index a3d7d4e8..aafc8172 100644 --- a/utils.js +++ b/utils.js @@ -85,7 +85,7 @@ function extractUserData(request) { exports.extractUserData = extractUserData; const getTransactionName = (request) => { - return `${request.method} ${request.routerPath}`; + return `${request.method} ${request.routeOptions.url}`; }; exports.getTransactionName = getTransactionName;