Skip to content

Commit 176ec01

Browse files
committed
fix: default span name should not include url
1 parent c297cbd commit 176ec01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/next/src/server/base-server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ export default abstract class Server<
888888
return tracer.trace(
889889
BaseServerSpan.handleRequest,
890890
{
891-
spanName: `${method} ${req.url}`,
891+
spanName: `${method}`,
892892
kind: SpanKind.SERVER,
893893
attributes: {
894894
'http.method': method,
@@ -936,8 +936,8 @@ export default abstract class Server<
936936
} else {
937937
span.updateName(
938938
isRSCRequest
939-
? `RSC ${method} ${req.url}`
940-
: `${method} ${req.url}`
939+
? `RSC ${method}}`
940+
: `${method}`
941941
)
942942
}
943943
})

0 commit comments

Comments
 (0)