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

Implement org and strictTraceContinuation init options #15644

Open
alaycock opened this issue Mar 13, 2025 · 1 comment
Open

Implement org and strictTraceContinuation init options #15644

alaycock opened this issue Mar 13, 2025 · 1 comment

Comments

@alaycock
Copy link

alaycock commented Mar 13, 2025

Problem Statement

When I receive requests to my Node server, they will occasionally contain the sentry-trace and baggage headers. Sentry's automatic instrumentation will attach the provided span ID as a parent to my server traces. Subsequently, Sentry's default sampling function will use the existence of a parent span to enable sampling for the request.

The result is that external parties can manipulate my Sentry trace sampling. It impacts performance when profiling is enabled and biases trace sampling towards specific endpoints.

My workaround is to ignore the the parent span when sampling via tracesSampler, but this means I cannot easily enable distributed tracing.

Solution Brainstorm

If strictTraceContinuation is implemented, it would let me to ignore parent spans provided by my API users.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 13, 2025
@Lms24
Copy link
Member

Lms24 commented Mar 14, 2025

Hi, thanks for writing in! We've started a conversation internally on the timeline for implementing this. We'll update this issue once we know more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants