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: Safely handle pre-header-filter …
Browse files Browse the repository at this point in the history
…phase failures

Closes #10
  • Loading branch information
james-callahan committed Jul 4, 2018
1 parent 3d48cc7 commit f384cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/plugins/zipkin/opentracing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function OpenTracingHandler:log(conf)
proxy_span:set_tag("peer.port", balancer_address.port)
end

if not opentracing.header_filter_finished then
if opentracing.header_filter_span then
opentracing.header_filter_span:finish(now)
opentracing.header_filter_finished = true
end
Expand Down

0 comments on commit f384cef

Please sign in to comment.