Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nuxt): Avoid sending resource request transactions #14497

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Nov 26, 2024

This PR refactors the low quality transaction filter in the Nuxt SDK to filter out all resource requests. Unless I'm missing something, our SDKs should generally not send dedicated transactions for resource requests as they would deplete transaction quota fairly quickly, compared to only tracking page requests.

The heuristic I chose is pretty simple. Using path.extname we get a falsy value if the transaction name does not end in a file extension. Which should be enough but it's almost too good to be true 🤔

Let's see what our e2e tests have to say... welp turns out they're happy 😅

@Lms24 Lms24 self-assigned this Nov 26, 2024
Copy link
Member

@s1gr1d s1gr1d left a comment

Choose a reason for hiding this comment

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

Thanks for adding this!

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