opentelemetry-cpp-contrib icon indicating copy to clipboard operation
opentelemetry-cpp-contrib copied to clipboard

Cannot load otel-webserver-module with Nginx 1.21.6

Open phillipuniverse opened this issue 2 years ago • 2 comments

Describe your environment

Docker with FROM nginx:1.21.6

Steps to reproduce

Included the build ngx_http_opentelemery_module.so like this:

load_module modules/ngx_http_opentelemetry_module.so;

output was:

gateway_1  | 2022/07/30 22:40:55 [emerg] 28#28: module "/etc/nginx/modules/ngx_http_opentelemetry_module.so" version 1018000 instead of 1021006 in /etc/nginx/common-outer-config.nginx.conf:5
gateway_1  | nginx: [emerg] module "/etc/nginx/modules/ngx_http_opentelemetry_module.so" version 1018000 instead of 1021006 in /etc/nginx/common-outer-config.nginx.conf:5

Nginx then immediately died.

What is the expected behavior?

Nginx started.

What is the actual behavior?

Nginx fails to start.

Additional context

phillipuniverse avatar Jul 30 '22 22:07 phillipuniverse

The error message (and in the readme) implies that this only works with Nginx 1.18.0. According to this endoflife.date, 1.18 was announced end of life April 2021, over a year ago.

phillipuniverse avatar Aug 09 '22 03:08 phillipuniverse

Thanks @phillipuniverse for the concern. We will plan and provide update on this.

DebajitDas avatar Aug 10 '22 05:08 DebajitDas

Released a new version supporting stable (1.22.0) and mainline (1.23.0) https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.2 of nginx. 1.18.0 is no longer supported.

DebajitDas avatar Oct 11 '22 11:10 DebajitDas

Closing this issue.

DebajitDas avatar Oct 11 '22 11:10 DebajitDas