open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
126 stars 140 forks source link

Support for Red Hat based Nginx images #355

Open Ruckus0143 opened 11 months ago

Ruckus0143 commented 11 months ago

Is there a way to use Nginx module with Red Hat based Nginx images? The latest fully supported Nginx version on RHEL 8 base is 1.22.1.
When using v1.0.3 module, version is mismatched.

2023/07/17 16:36:01 [emerg] 20#0: module "/opt/opentelemetry-webserver-sdk/WebServerModule/Nginx/1.22.0/ngx_http_opentelemetry_module.so" version 1022000 instead of 1022001 in /etc/nginx/nginx.conf:8
nginx: [emerg] module "/opt/opentelemetry-webserver-sdk/WebServerModule/Nginx/1.22.0/ngx_http_opentelemetry_module.so" version 1022000 instead of 1022001 in /etc/nginx/nginx.conf:8

bash-4.4$ cat /opt/opentelemetry-webserver-sdk/VERSION.txt
1.0.3GA

bash-4.4$ nginx -v
nginx version: nginx/1.22.1
bash-4.4$ ldd --version
ldd (GNU libc) 2.28

AppDynamics is referencing this repository for instrumentation option, however, this module is not compatible with desired image provider.

Azzore commented 7 months ago

+1 We are using RH S2I to run our workloads, which is based on RH ubi8, with nginx 1.22.1. We are encountering 2 main issues :

norlang commented 1 week ago

Using RH ubi9/nginx-122 as base image I encountered the same issue. I tried to get I working by installing libxcrypt-combat. This got me to the next error of missing libnsl.so.1. The RH UBI9 package repository contains libnsl.so.2 via package libnsl2 only. That's where I'm stuck right now.

@DebajitDas @Azzore How did you solve the issue? In particular: How did you manage to instrument the Nginx container?