Commit eb0919c1 authored by wanjilong's avatar wanjilong

add: trace api

parent 8d17a557
......@@ -73,4 +73,13 @@ class TccController extends Base
$this->success(['result'=>[]]);
}
public function traceAction() {
$params = $this->getRequest()->getPost();
//$params['traceId'] = \Api\PhpUtils\Log\Tracer::getTraceId();
file_put_contents('/tmp/aa.log', json_encode($_SERVER), FILE_APPEND);
$params['traceId'] = \Helpers\Tracer::getTraceId();
$this->success($params);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment