Skip to content

Commit a3cd3fa

Browse files
committed
Fix double slash in url for xray
Regressed with 9d7beac
1 parent 4d6a80c commit a3cd3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tracing/xray.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class XRayMiddleware implements NestMiddleware, NestInterceptor {
3636
root.addIncomingRequestData(reqData);
3737
// Use public DNS as url instead of specific IP
3838
// @ts-expect-error xray library types suck
39-
root.http.request.url = this.config.hostUrl + req.originalUrl;
39+
root.http.request.url = this.config.hostUrl + req.originalUrl.slice(1);
4040

4141
// Add to segment so interceptor can access without having to calculate again.
4242
Object.defineProperty(reqData, 'traceData', {

0 commit comments

Comments
 (0)