We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setName
1 parent 74672a0 commit 64122e8Copy full SHA for 64122e8
packages/nextjs/src/utils/instrumentServer.ts
@@ -332,8 +332,8 @@ function makeWrappedMethodForGettingParameterizedPath(
332
// replace specific URL with parameterized version
333
if (transaction && transaction.metadata.requestPath) {
334
const origPath = transaction.metadata.requestPath;
335
- transaction.name = transaction.name.replace(origPath, parameterizedPath);
336
- transaction.setMetadata({ source: 'route' });
+ const newName = transaction.name.replace(origPath, parameterizedPath);
+ transaction.setName(newName, 'route');
337
}
338
339
return origMethod.call(this, parameterizedPath, ...args);
0 commit comments