Skip to content

Commit

Permalink
bugfix: fix typo of instance_id in skywalking plugin. (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiujiayu authored May 31, 2020
1 parent 39ef6fb commit 25e608c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/skywalking/tracer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 25e608c

Please sign in to comment.