sfhardman / kong-plugin-zipkin

Kong plugin to simulate clients and/or servers where these cannot practically be instrumented directly
Apache License 2.0
31 stars 9 forks source link

zipkin serviceName is the client ip #3

Closed kimloong closed 6 years ago

kimloong commented 6 years ago

when I send a request cross the kong,the zipkin show the serviceName as the client ip,not the kong server ip,by the way,how can I set the kong's serviceName

sfhardman commented 6 years ago

If there is an "x-consumer-username" header (e.g. one of the Kong auth plugins is used) then this will be used as the client's service name, otherwise the client IP. The server service name will be taken from the upstream url of the proxied API