AsperforMias commented on PR #3853:
URL: https://github.com/apache/dubbo-go/pull/3853#issuecomment-7074050077

   Logs from the verification run, for reference: a Triple provider with trace 
integration and the access log on and `execute.limit=1` (each call takes 300 
ms), and a consumer sending two concurrent calls, both exporting spans to 
stdout. URLs are shortened.
   
   **This PR**: the access log lines and the execute-limit rejection carry the 
trace ID of each request's server span.
   
   ```text
   2026-11-21 20:12:32  INFO  accesslog/filter.go:289  [Filter][AccessLog] []  
->  -  () <*greet.GreetRequest Value> trace_id=211952344313096b3f7db11835f1528e 
span_id=e551d9171cc33c9e
   2026-11-21 20:12:32  ERROR  exec_limit/filter.go:129  [Filter][ExecLimit] 
the invocation was rejected due to over the execute limitation, 
url=tri://:20700/greet.GreetService?...  {"trace_id": 
"21ff9696c21a03f469e07fa36cf60efa", "span_id": "a46485fa91d84a9a", 
"trace_flags": "01"}
   2026-11-21 20:12:32  INFO  accesslog/filter.go:289  [Filter][AccessLog] []  
->  -  () <*greet.GreetRequest Value> trace_id=21ff9696c21a03f469e07fa36cf60efa 
span_id=a46485fa91d84a9a
   ```
   
   Server spans exported in the same run:
   
   ```text
   Greet  trace_id=21ff9696c21a03f469e07fa36cf60efa  span_id=a46485fa91d84a9a
   Greet  trace_id=211952344313096b3f7db11835f1528e  span_id=e551d9171cc33c9e
   ```
   
   **develop**, same setup: the spans are exported, but neither kind of line 
carries a trace ID.
   
   ```text
   2026-11-21 20:12:12  ERROR  exec_limit/filter.go:130  [Filter][ExecLimit] 
the invocation was rejected due to over the execute limitation, 
url=tri://:20700/greet.GreetService?...
   2026-11-21 20:12:12  INFO  accesslog/filter.go:281  [Filter][AccessLog] []  
->  -  () <*greet.GreetRequest Value>
   2026-11-21 20:12:12  INFO  accesslog/filter.go:281  [Filter][AccessLog] []  
->  -  () <*greet.GreetRequest Value>
   ```
   
   The line logged by the default rejected-execution handler 
(`rejected_execution_handler_only_log.go`) still has no trace ID: 
`RejectedExecutionHandler.RejectedExecution` receives no context, and changing 
that interface is outside this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to