Skip to content

fix(v7/tracing-internal): Fix case when lrp keys offset is 0 - #14615

Merged
AbhiPrasad merged 2 commits into
getsentry:v7from
LubomirIgonda1:fix-express-route-params
Dec 11, 2024
Merged

AbhiPrasad merged 2 commits into
getsentry:v7from
LubomirIgonda1:fix-express-route-params

Conversation

@LubomirIgonda1

Copy link
Copy Markdown
Contributor

This PR fix use case when lrp keys offset is calculate to 0. I discover this case after update express from v4.19.2 to v4.21.2
For example:

api/v1/users/1/posts
Old behavior

sentry build req._reconstructedRoute as:
api/v1/users/1/posts
New behavior

sentry build req._reconstructedRoute as:
api/v1/users/:param/posts

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LubomirIgonda1!

@mydea mydea changed the title fix(tracing-internal): Fix case when lrp keys offset is 0 fix(v7/tracing-internal): Fix case when lrp keys offset is 0 Dec 10, 2024
@AbhiPrasad
AbhiPrasad merged commit 4690bf3 into getsentry:v7 Dec 11, 2024
AbhiPrasad added a commit that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants