open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
123 stars 137 forks source link

Nginx opentelemetry module not working in Nginx 1.18 or 1.22 #306

Closed uttammajigithub closed 10 months ago

uttammajigithub commented 1 year ago

Hi team,

I have tested nginx 1.18.0 with http module 1.0.0 and 1.0.1, but got the error that ngx_http_opentelemetry_module.so is not binary compatible.

Also tested nginx 1.22.1 with http module 1.0.2 and 1.0.3 but got the error that ngx_http_opentelemetry_module.so file is for 1.22.0 version and it will not work for 1.22.1 version. Here we are using higher version of nginx, but it is not supporting ngx_http_opentelemetry_module.so which was created in lower version.

Could you please check the issue and suggest quick resolution.

Thanks Uttam

FullStackIndie commented 1 year ago

Are you using the deprecated version for Nginx 1.18 located in the nginx folder or the new version for Nginx stable version (1.22.0) and mainline versions(1.23.0, 1.23.1). in the otel-webserver-module ???

senthilmnathan commented 1 year ago

Are you using the deprecated version for Nginx 1.18 located in the nginx folder or the new version for Nginx stable version (1.22.0) and mainline versions(1.23.0, 1.23.1). in the otel-webserver-module ???

I am running into the same issue. I am using opentelemetry-webserver-sdk version 1.0.0 and Redhat nginx 1.18.0. I get the error. I am using RedHat EL version 8.7

nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_opentelemetry_module.so" is not binary compatible in /usr/share/nginx/modules/ngx_http_opentelemetry_module.so" is not binary compatible in /usr/share/nginx/modules/mod-http-opentelemetry.conf

  1. Does this Opentelemetry WebServer library support RedHat OS and RedHat Nginx binary ?
  2. If I need to run telemetry on Redhat nginx latest version (1.22.1) how do I go about building the library ? Please advice

Thanks Senthil Nathan M