From acba5331a9a4b29397fc343cf62e7dd490a2875e Mon Sep 17 00:00:00 2001 From: James Callahan Date: Thu, 5 Jul 2018 16:04:28 +1000 Subject: [PATCH] kong/plugins/zipkin/opentracing.lua: Avoid :finish-ing a span twice Closes #15 --- kong/plugins/zipkin/opentracing.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/plugins/zipkin/opentracing.lua b/kong/plugins/zipkin/opentracing.lua index 4f5d18ee154..32b05485d6e 100644 --- a/kong/plugins/zipkin/opentracing.lua +++ b/kong/plugins/zipkin/opentracing.lua @@ -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