i'm using the third party library from https://github.com/patrickkerrigan/php-xray since aws do not have any x-ray sdk for php
this is how i trace my application using the library
however, i'm not able to see any traceses is made the trace view map
Trace::getInstance()
->setName('my-app')
->setUrl('http://example.com')
->setMethod('GET')
->begin();
echo 'my function';
Trace::getInstance()
->end()
->setResponseCode(http_response_code())
->setError(http_response_code() >= 400 && http_response_code() < 500)
->setFault(http_response_code() >= 500)
->submit(new \Pkerrigan\Xray\Submission\DaemonSegmentSubmitter());