I've tried to configure Opentracing + Jaeger in Apicast and it seems that there is not all required libraries:
dnsmasq[10]: started, version 2.76 cachesize 1000
dnsmasq[10]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotify
dnsmasq[10]: using nameserver 10
dnsmasq[10]: reading /etc/resolv.conf
dnsmasq[10]: using nameserver options#0
dnsmasq[10]: using nameserver 10.8.47.49#53
dnsmasq[10]: cleared cache
nginx: [emerg] dlopen() "/usr/local/openresty/nginx/modules/ngx_http_opentracing_module.so" failed (libopentracing.so.1: cannot open shared object file: No such file or directory) in /tmp/lua_8gceyU:10
and also I've tried to look into image and libopentracing.so.1 is not in Apicast image.