Skip to content

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 ffd069b commit cc1c0c6
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 cc1c0c6

Please sign in to comment.