Skip to content

Commit

Permalink
kong/plugins/zipkin/opentracing.lua: Avoid :finish-ing a span twice
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
james-callahan committed Jul 5, 2018
1 parent ccb004a commit 255142d
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 opentracing.header_filter_span then
if not opentracing.header_filter_finished and opentracing.header_filter_span then
opentracing.header_filter_span:finish(now)
opentracing.header_filter_finished = true
end
Expand Down

0 comments on commit 255142d

Please sign in to comment.