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
fix(tracing): Use integer for content length #8152
Conversation
@@ -36,7 +36,7 @@ describe('envelope', () => { | |||
expect(headers).toEqual({ event_id: 'aa3ff046696b4bc6b609ce6d28fde9e2', sent_at: '123' }); | |||
}); | |||
|
|||
it.only('serializes an envelope with attachments', () => { | |||
it('serializes an envelope with attachments', () => { |
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.
it.only
😭
span.setData('http.response_content_length', contentLength); | ||
|
||
const contentLengthNum = parseInt(contentLength); | ||
if (contentLengthNum > 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.
this check takes care of NaN also
const postRequestFetchHandlerData = { | ||
...fetchHandlerData, | ||
endTimestamp, | ||
response: { status: 404, headers: { get: () => 123 } }, |
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.
shimming out the headers obj since not available in 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.
Yeah its painful but I also had to do this somewhere 😅
size-limit report 📦
|
No description provided.