xray_put_trace_segments function

Uploads segment documents to Amazon Web Services X-Ray