e.g. using docker:
sudo docker run -d -p 9411:9411 openzipkin/zipkin
curl --url http://localhost:8001/plugins/ -d name=zipkin -d config.http_endpoint=http://127.0.0.1:9411/api/v2/spans
See many more details of using this plugin at https://docs.konghq.com/plugins/zipkin/
The Zipkin plugin is derived from an OpenTracing base.
A tracer is created with the "http_headers" formatter set to use the headers described in b3-propagation
kong.request
: encompasing the whole request in kong. All other spans are children of this.kong.rewrite
: encompassing the kong rewrite phasekong.proxy
: encompassing kong's time as a proxykong.access
: encompassing the kong access phasekong.balancer
: each balancer phase will have it's own spankong.header_filter
: encompassing the kong header filter phasekong.body_filter
: encompassing the kong body filter phase
"Standard" tags are documented here Of those, this plugin currently uses:
span.kind
(sent to Zipkin as "kind")http.method
http.status_code
http.url
peer.ipv4
peer.ipv6
peer.port
peer.hostname
peer.service
In addition to the above standardised tags, this plugin also adds:
kong.api
(deprecated)kong.consumer
kong.credential
kong.node.id
kong.route
kong.service
kong.balancer.try
kong.balancer.state
: see here for possible valueskong.balancer.code