-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(replay): Add event to capture options on checkouts #8011
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
@mydea Thoughts on this approach? Not sure if it's better here or when we flush |
networkRequestHeaders: options.networkRequestHeaders.length > 0, | ||
networkResponseHeaders: options.networkResponseHeaders.length > 0, |
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.
networkRequestHeaders: options.networkRequestHeaders.length > 0, | |
networkResponseHeaders: options.networkResponseHeaders.length > 0, | |
networkRequestHasHeaders: options.networkRequestHeaders.length > 0, | |
networkResponseHasHeaders: options.networkResponseHeaders.length > 0, |
? for symmetry, maybe?
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.
I was looking at the config but maybe this changed...
It looks like req & resp either both have headers, bo both do not. But these two fields networkRequestHasHeaders
and networkResponseHasHeaders
makes it seem like there could be an XOR kind of case, where one has headers and the other doesn't?
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.
@ryan953 yeah it's possible we have an XOR case
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.
these fields tell us if users have configured additional headers for request/response.
Tests still need some work, it's going to be a bit annoying because it's testing against the stringified payload and ordering needs to be exact :( |
size-limit report 📦
|
Add a custom event that captures configuration options on checkout + segment 0.
7020963
to
16e575a
Compare
Add a custom event that captures configuration options on checkout + segment 0.
Closes #7140
Closes #8004