-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support RequestBody#contentLength. #1227
Conversation
Generate changelog in
|
{"traceId":"3519228122fee79e","parentSpanId":"b9eede02cfc9a230","spanId":"fc414565b6a32ddd","type":"LOCAL","operation":"Dialogue-request-attempt initial","startTimeMicroSeconds":1619611357982666,"durationNanoSeconds":1428971,"metadata":{}} | ||
{"traceId":"3519228122fee79e","parentSpanId":"76a3f96c2bd32ebb","spanId":"257e95ea327f70b4","type":"LOCAL","operation":"Dialogue-RetryingChannel","startTimeMicroSeconds":1619611357020816,"durationNanoSeconds":964010756,"metadata":{"serviceName":"service","endpointName":"endpoint","failures":"5","channel":"my-channel"}} | ||
{"traceId":"3519228122fee79e","parentSpanId":null,"spanId":"4791d408917316f4","type":"LOCAL","operation":"Dialogue: request service#endpoint","startTimeMicroSeconds":1619611357020205,"durationNanoSeconds":970171438,"metadata":{"endpointService":"service","endpointName":"endpoint","http.method":"POST","channel":"my-channel","mesh":"false","outcome":"failure","http.status_code":"429"}} | ||
{"traceId":"3519228122fee79e","parentSpanId":"866a99f10ab0c9b9","spanId":"cff8c71cc0a4de65","type":"LOCAL","operation":"dialogue-RetryingChannel-scheduler","startTimeMicroSeconds":1619611357982457,"durationNanoSeconds":8481191,"metadata":{}} |
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.
Thoughts on what happened?
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.
Feels like this should've been there from the start?
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.
My guess is that the scheduler runnable is still executing while the test completes, which allows the test to record spans up to, but not including the final dialogue-RetryingChannel-scheduler
.
In both before and after, we have the correct number of Dialogue-request-attempt
and Dialogue-request-attempt initial
spans.
Released 1.120.0 |
Before this PR
No way to specify content length of body directly.
After this PR
==COMMIT_MSG==
RequestBody supports optional content length.
==COMMIT_MSG==
Possible downsides?
More API. It's kinda already API, for feign replacement, so likely makes sense to support directly. Also useful for #1222