You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by we...@apache.org on 2020/05/31 12:39:27 UTC
[incubator-apisix] branch master updated: bugfix: fix typo of
`instance_id` in skywalking plugin. (#1629)
This is an automated email from the ASF dual-hosted git repository.
wenming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 25e608c bugfix: fix typo of `instance_id` in skywalking plugin. (#1629)
25e608c is described below
commit 25e608c94666c6028aa47c6e02c9c16bdfdc234a
Author: qiujiayu <15...@qq.com>
AuthorDate: Sun May 31 20:39:15 2020 +0800
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 edc4bfe..187b941 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()