aws-xray icon indicating copy to clipboard operation
aws-xray copied to clipboard

Keep socket open throughout request

Open rmccue opened this issue 5 years ago • 2 comments

In send_trace_to_daemon we're constantly opening and closing socket connections to the X-Ray daemon. We would likely be able to gain a bunch of performance by instead opening a connection at the start of the request, and only closing it again at the end of the request.

rmccue avatar Jan 30 '20 11:01 rmccue

@joehoyle can you think of any reason not to do this?

rmccue avatar Feb 03 '20 12:02 rmccue

Mm yeah I don't think there was any reason for that.

joehoyle avatar Feb 03 '20 13:02 joehoyle