-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
test(V7/browser-integration-tests): Check for sentry-trace
header in TwP
#11555
Conversation
integrations: [ | ||
new Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'], startTransactionOnPageLoad: false }), | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test was broken before but still succeeded because our assertions didn't check anything specific other than ensuring that requests were made.
sentry-trace
header in TwP
size-limit report 📦
|
hmm why is size-check complaining? I guess we added more stuff in v7 recently and it just fluctuates a bit 🤔 |
FYI I'm gonna hold off from merging this in to avoid blocking today's v7 release (#11540) |
This also forward-ports the tests from #11555, and adds some more tests.
This also forward-ports the tests from #11555, and adds some more tests.
This also forward-ports the tests from #11555, and adds some more tests. Node is a different story, will tackle it separately.
…ry#11561) This also forward-ports the tests from getsentry#11555, and adds some more tests. Node is a different story, will tackle it separately.
As a result of our investigation into tracing behaviour for fetch requests without active spans, this PR adjusts/adds tests around checking that a
sentry-trace
header is attached to outgoing requests in v7 of the SDK. As we also discovered today, this unfortunately doesn't work as "advertised in the basic TwP case:BrowserTracing
initialized;tracesSamplerate
set:sentry-trace
header is attached without a sampled flag.BrowserTracing
is initialized but notracesSampleRate
: We currently don't attach asentry-trace
header although we should.