Skip to content

bug: the b3 header data should be consistently sent downstream in zipkin plugin #7795

Description

@Gallardot

Current Behavior

Enabel zipkin plugin.

Set sample_ratio to not equal to 1, for example, 0.1. APISIX will not send B3 header data downstream when a request does not require sampling.

Expected Behavior

Enabel zipkin plugin.

Set sample_ratio to not equal to 1, for example, 0.1. Even when a request does not require sampling, Apisix sends B3 header data downstream.

Error Logs

No response

Steps to Reproduce

ref: https://apisix.apache.org/docs/apisix/plugins/zipkin/

Environment

  • APISIX version (run apisix version):
  • 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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions