-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Include bytes sent/received in HTTP requests for replays #7373
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
Comments
FYI @krystofwoldrich outside of replays this would affect React Native and bring in on par to the other mobile SDKs if we're aligning. |
So just to clarify, we'll add this for all breadcrumbs, not just in replay itself. We'll add:
Which we get the same way as for replay recording length: new TextEncoder().encode(recordingData).length (Which is not supported in IE11, so we'll just not have this data there). Final question: Should we do this for all requests/responses, or just for e.g. JSON? For responses we can probably look at content-type headers, for requests not so much (we can't access them). I would propose one of these options, for simplicity:
|
@bruno-garcia Thanks |
Shouldn't we be able to access the request headers (at least for fetch?)
I'd lean towards #2, but we should do some testing to see how inaccurate this can be. |
bytes or kb, bytes I assume? |
Uh oh!
There was an error while loading. Please reload this page.
The goal here is to get on the Replay blob
request_body_size
andresponse_body_size
so we can understand how large these are.We'll need to set some limits so it can also help answer the question: "Why don't I see my request body" or "why is it truncated"?
Additionally, it'll help us get a distribution of size and decide what these limits should be.
Note that Mobile SDKs add to
breadcrumb.data
the keysrequest_body_size
andresponse_body_size
to all breadcrumbs. This isn't on the develop docs it seems but possibly good value to breadcrumbs XHR/fetch on JS too outside of ReplayThe text was updated successfully, but these errors were encountered: