snpcp opened a new issue #5003:
URL: https://github.com/apache/skywalking/issues/5003


   I using span.lua throw 'not found lua' error.
   
   The issue is caused by rockspec modules.
   
   Please see '["skywalking.span_layer"] = "lib/skywalking/span_layer.lua"' 
(https://github.com/apache/skywalking-nginx-lua/blob/master/rockspec/skywalking-nginx-lua-0.1-0.rockspec)
   
   In span.lua 
(https://github.com/apache/skywalking-nginx-lua/blob/master/lib/skywalking/span.lua)
 line 18. the span require 'span_layer' instead of 'skywalking.span_layer'. so 
not found span_layer.lua.
   
   And I couldn't have set lua_package_path to the 
'/usr/local/openresty/luajit/share/lua/5.1/skywalking/' directory,  this is my 
lua_package_path: '/usr/local/openresty/luajit/share/lua/5.1/', I can using 
span.lua by require 'skywalking.span', but I have no control over the use of 
span_layer.lua.
   
   Please tell me how to do it? thanks very much.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to