-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(core): Pre-beforeSendTransaction
cleanup
#6135
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
Conversation
size-limit report 📦
|
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.
LGTM. Thanks for pulling this out and for the individual commits - makes reviewing easier.
contexts: { | ||
trace: { | ||
op: 'pageload', | ||
span_id: 'a3df84a60c2e4e76', | ||
trace_id: '86f39e84263a4de99c326acab3bfe3bd', | ||
}, | ||
}, | ||
environment: 'production', | ||
event_id: '972f45b826a248bba98e990878a177e1', | ||
spans: [], | ||
start_timestamp: 1591603196.614865, | ||
timestamp: 1591603196.728485, |
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.
So this is just stuff we didn't need for the test?
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.
Yup. It has nothing to do with the name-change data we're testing, so in the end it's just noise.
This is a collection of a bunch of small and mostly dumb fixes pulled from #6121 (along with a few others I happened upon in the course of working on it), in order to make that PR easier to review. Some of the changes are cosmetic (formatting and wordsmithing test names, adding comments, etc.), some are refactors for clarity (mostly renaming of variables), one or two are test changes which will be necessary for the tests introduced in #6121 (in order to keep the
beforeSend
andbeforeSendTransaction
tests as parallel as possible, in case we ever want to parameterize them), one is pulling unneeded extra data out of a test to make it simpler, and two are actual fixes, namely:In the outcomes test, we were recording a session being dropped by
beforeSend
, but sessions don't go throughbeforeSend
, so it's now an error event.In many places in the base client tests, we were using
.toBe()
rather thantoEqual()
for values (like numbers and strings) which as far as I know aren't guaranteed to be singletons (the waytrue
andfalse
are, for example). This switches to usingtoEqual()
in those cases.Note: Each commit is a single one of the above changes, in case it's easier to review that way.