Commit 450fab42 authored by Liu lu's avatar Liu lu

使用协程上下文存储request_id作为唯一的标识

parent 93f5d3a8
...@@ -36,7 +36,7 @@ class LogTraceAspect extends AbstractAspect ...@@ -36,7 +36,7 @@ class LogTraceAspect extends AbstractAspect
$originParams = [ $originParams = [
'called_params'=>$proceedingJoinPoint->getArguments(), 'called_params'=>$proceedingJoinPoint->getArguments(),
'http_params'=>make(RequestInterface::class)->all() 'http_params'=>$object?make(RequestInterface::class)->all():[]
]; ];
LogTraceHandler::createLogTrace( LogTraceHandler::createLogTrace(
$proceedingJoinPoint->className.'@'.$proceedingJoinPoint->methodName, $proceedingJoinPoint->className.'@'.$proceedingJoinPoint->methodName,
......
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