Skip to content

Commit

Permalink
fix: add missing leading slash on route
Browse files Browse the repository at this point in the history
  • Loading branch information
esroyo committed Feb 24, 2025
1 parent b86641c commit 1daac09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create-main-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function createMainHandler(
const isMapRequest = publicUrl.endsWith('.map');
rootSpan?.setAttributes({
'esm.build.target': buildTarget,
'http.route': upstreamUrl.toString().replace(UPSTREAM_ORIGIN, ''),
'http.route': upstreamUrl.toString().replace(UPSTREAM_ORIGIN, '/'),
'http.url': publicUrl,
});

Expand Down

0 comments on commit 1daac09

Please # to comment.