Files
medusa-store/packages
Adrien de Peretti 899b1fba4a chore(medusa): Add handler path to the http tracing to be able to group by (#10835)
RESOLVES FRMW-2835

In this PR, we trace HTTP requests using the route pattern and not the request URL. This allows us to aggregate all HTTP requests under a single route.

In terms of implementation, we have to self find the route for a given request, since there is no API in express to do the same and we begin tracing even before the request is handed over to Express.

Since, the route matching happens via RegExp matches, we ensure that this does not add much performance overhead. The matching takes between 0.8ms-1.5ms for various different routes

Co-authored-by: Harminder Virk <1706381+thetutlage@users.noreply.github.com>
2025-01-07 13:16:20 +00:00
..
2025-01-07 13:31:40 +01:00
2025-01-07 13:31:40 +01:00
2025-01-07 13:31:40 +01:00
2025-01-07 13:31:40 +01:00
2025-01-07 13:31:40 +01:00
2025-01-07 13:31:40 +01:00
2025-01-07 13:31:40 +01:00