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.
1 parent 453a357 commit f556dc2Copy full SHA for f556dc2
src/runtime/plugin.ts
@@ -16,7 +16,7 @@ export default <NitroAppPlugin>((nitro) => {
16
const parentCtx = trace.getSpan(currentContext) ? currentContext : api.propagation.extract(currentContext, getHeaders(event));
17
const span = tracer.startSpan(await getSpanName(event), {
18
attributes: {
19
- [ATTR_URL_PATH]: event.context.matchedRoute?.path || event.path,
+ [ATTR_URL_PATH]: (await nitro.h3App.resolve(event.path))?.route || event.path,
20
[ATTR_URL_FULL]: event.path,
21
[ATTR_HTTP_REQUEST_METHOD]: event.method,
22
[ATTR_URL_SCHEME]: getRequestProtocol(event),
0 commit comments