Skip to content

Automatically exclude tunnel request from backend transactions #16157

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

Open
timfish opened this issue Apr 29, 2025 · 1 comment
Open

Automatically exclude tunnel request from backend transactions #16157

timfish opened this issue Apr 29, 2025 · 1 comment
Labels
Package: node Issues related to the Sentry Node SDK

Comments

@timfish
Copy link
Collaborator

timfish commented Apr 29, 2025

Problem Statement

When setting up the tunnel option, users will often follow the docs and add a local API route to forward those envelopes.

These POST requests will usually get auto-instrumented on the backend and will potentially result in a transaction for every frontend envelope.

Solution Brainstorm

Filter these out in some way?

If the tunnel option is set in the frontend, we could automatically set the Content-Type as application/x-sentry-envelope. This can be picked up in the http instrumentation and used to ignore these requests.

@timfish timfish added the Package: node Issues related to the Sentry Node SDK label Apr 29, 2025
@Lms24
Copy link
Member

Lms24 commented Apr 29, 2025

added this as a sub issue of https://github.com/getsentry/projects/issues/385 (which I guess we still have to port to Linear) but fully agree, this sounds like a good approach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: node Issues related to the Sentry Node SDK
Projects
None yet
Development

No branches or pull requests

2 participants