Comments (9)
I'll make the CI build an artifact for the latest OpenResty as well, but might not get to it today yet
from opentelemetry-cpp-contrib.
Update
The otel_ngx_module-ubuntu-18.04-stable.so
module works fine with Ubuntu 20.04, running nginx 1.18.0
$ nginx -V
nginx version: nginx/1.18.0 (Ubuntu)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-KTLRnK/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-compat --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module
from opentelemetry-cpp-contrib.
Update
The
otel_ngx_module-ubuntu-18.04-stable.so
module works fine with Ubuntu 20.04, running nginx1.18.0
$ nginx -V nginx version: nginx/1.18.0 (Ubuntu) built with OpenSSL 1.1.1f 31 Mar 2020 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-KTLRnK/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-compat --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module
Update
Though nginx -t
didn't throw any error, I was not able to start nginx as a result of below error,
dlopen() "/usr/share/nginx/modules/otel_ngx_module.so" failed (/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/share/nginx/modules/otel_ngx_module.so)) in /etc/nginx/modules-enabled/50-mod-otel.conf:1
from opentelemetry-cpp-contrib.
To clarify stable
and mainline
refer to the nginx versions here: http://nginx.org/en/download.html, i.e. stable means 1.18.x and mainline 1.19.x. Although now looking at the link, nginx has a new version: 1.20 and 1.21 as of lately. I'll go over the build scripts to incorporate these changes.
Did the dlopen
error happen on Ubuntu 20.04 with nginx 1.18.0
? Then you could try the so built for this Ubuntu version (20.04): https://github.com/open-telemetry/opentelemetry-cpp-contrib/suites/2845583231/artifacts/63504121
from opentelemetry-cpp-contrib.
@seemk I was able to successfully make it run in ubuntu 20.04
(nginx:1.18.0) using otel_ngx_module-ubuntu-20.04-stable.so
. I'm basically trying to make this work for openresty nginx:1.19.3
. I'll let you know how it goes :)
from opentelemetry-cpp-contrib.
It looks like the OpenResty from apt does not have --with-compat
enabled. Are you using the OpenResty Docker images or installing it via apt?
Looking for a solution for the apt problem currently
from opentelemetry-cpp-contrib.
@seemk I was trying from apt and as you said it doesn't have --with-compat
. I'm yet to try in OpenResty Docker or by building it from source. I should probably able to test it by tomorrow.
from opentelemetry-cpp-contrib.
@chrissam were you able to make it work with openresty?
from opentelemetry-cpp-contrib.
I'll make the CI build an artifact for the latest OpenResty as well, but might not get to it today yet
any chance that it was done?
from opentelemetry-cpp-contrib.
Related Issues (20)
- `nginx: [emerg] "NginxModuleEnabled" directive is duplicate in /etc/nginx/conf.d/opentelemetry_module.conf:1` HOT 1
- Add feature to send custom attributes from the otel-webserver-module to spans.
- Coredumps when the OpenTelemetry collector host is unavailable.
- nginx module logs debug info as errors
- unknown directive "NginxModuleAttributes" HOT 1
- Add more Resource Attributes to the Otel-Webserver-Module Nginx instrumentation. HOT 1
- Feature to add nginx variables to access tracing context information HOT 1
- [ADMIN] Define labels for the opentelemetry-cpp-contrib repository
- [CI] Add CI for instrumentation/boost_log
- [CI] Add CI for instrumentation/glog
- [CI] Add CI for instrumentation/log4cxx
- [CI] Add CI for instrumentation/spdlog
- [RELEASE] Prepare release for opentelemetry-cpp-contrib 1.15.0
- [CI] Upgrade Prometheus CI to opentelemetry-cpp 1.15.0
- [CI] Upgrade otel-webserver-module CI to opentelemetry-cpp 1.15.0 HOT 1
- Upgrade otel-webserver module for nginx stable version 1.26 and mainline 1.25.5 HOT 1
- Release webserver/v1.1.0 is broken HOT 1
- [BUILD] boost_log compilation error (possibly dangling reference) HOT 2
- Support for legacy Cloud Trace propagation header HOT 1
- Nginx instrumentation generate multi propogation header when request header count >= 20 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-cpp-contrib.