Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
kong/plugins/zipkin/opentracing.lua: Fix missing kong.credential field
Browse files Browse the repository at this point in the history
  • Loading branch information
james-callahan committed Aug 3, 2018
1 parent e09b1d1 commit c627c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/plugins/zipkin/opentracing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ function OpenTracingHandler:log(conf)
if ctx.authenticated_consumer then
request_span:set_tag("kong.consumer", ctx.authenticated_consumer.id)
end
if ctx.authenticated_credentials then
request_span:set_tag("kong.credential", ctx.authenticated_credentials.id)
if ctx.authenticated_credential then
request_span:set_tag("kong.credential", ctx.authenticated_credential.id)
end
if ctx.service and ctx.service.id then
proxy_span:set_tag("kong.service", ctx.service.id)
Expand Down

0 comments on commit c627c36

Please sign in to comment.