tzssangglass commented on issue #7485:
URL: https://github.com/apache/apisix/issues/7485#issuecomment-1188881046

   We can specify log_format to record the trace_id.
   
   ref: 
https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/kafka-logger.md#metadata
   
   here is example:
   ```
   "log_format": { "host": "$host", "client_ip": "$remote_addr", "uri": "$uri", 
"request_time": "$request_time", "router_name": "$route_name", "status": 
"$status", "did": "$http_did", "trace_id": "$http_trace_id", "@timestamp": 
"$time_iso8601", "time_num": "$msec", "uid": "$http_uid" }
   ```


-- 
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]

Reply via email to