bugfix: fix typo of instance_id in skywalking plugin. (#1629)

This commit is contained in:
qiujiayu 2020-05-31 20:39:15 +08:00 committed by GitHub
parent 39ef6fb2eb
commit 25e608c946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()