From 25e608c94666c6028aa47c6e02c9c16bdfdc234a Mon Sep 17 00:00:00 2001 From: qiujiayu <153163285@qq.com> Date: Sun, 31 May 2020 20:39:15 +0800 Subject: [PATCH] bugfix: fix typo of `instance_id` in skywalking plugin. (#1629) --- apisix/plugins/skywalking/tracer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix/plugins/skywalking/tracer.lua b/apisix/plugins/skywalking/tracer.lua index edc4bfe0..187b941e 100644 --- a/apisix/plugins/skywalking/tracer.lua +++ b/apisix/plugins/skywalking/tracer.lua @@ -36,7 +36,7 @@ function _M.start(ctx, endpoint, upstream_name) local instance_id = tracing_buffer:get(endpoint .. '_instance_id') local service_id = tracing_buffer:get(endpoint .. '_service_id') - if service_id and service_id then + if service_id and instance_id then context = tracing_context.new(service_id, instance_id) else context = tracing_context.newNoOP()