xuminwlt opened a new issue, #7903:
URL: https://github.com/apache/apisix/issues/7903

   ### Current Behavior
   
   sample on, the plugin is create a traceId or get parent traceid.
   when sampler is off, the plugin skip and no traceId is create or transparent 
receive.
   
   "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" }
   
   issue:
   the same question to zipkin is 
fixed:https://github.com/apache/apisix/issues/7795
   
   and the issue is here.
   https://github.com/apache/apisix/issues/7485
   
   ### Expected Behavior
   
   sample off, traceId is need.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Open the plugin opentelemetry
   2. set sample = alywaysOff
   3. no traceId in htt_trace_id
   
   ### Environment
   
   - APISIX version (run `apisix version`): 1.4.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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