-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Describe the bug
After instrumenting the express app. In some cases OpenAPM is not masking the paths using openapm.instrument('express') signature. The paths in the screenshot should be prefixed with /org/:orgId/
To Reproduce
Steps to reproduce the behavior:
- Generate a demo express application using
npx express-generator - Use
openapm.instrument('express')as per the documentation - Create a router and use a parameter in the base path
- Start the application and make calls to the paths initialized in the router.
localhost:9097/metricswon't have a parameterised routes.
Expected behavior
The paths should be parameterized like it is in the screenshot. When the middleware is used directly like this
app.use(openapm.REDMiddleware); the behaviour seems to be as expected.

