We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe your environment:
Steps to reproduce:
ngx_http_opentelemetry_module
NginxModuleTraceAsError
ON
OFF
What is the expected behavior?
What is the actual behavior?
Error Log:
nginx: [error] mod_opentelemetry: ngx_http_opentelemetry_init: Starting Opentelemetry Module init nginx: [error] mod_opentelemetry: ngx_http_opentelemetry_init: Registering handlers for modules in different phases nginx: [error] mod_opentelemetry: ngx_http_opentelemetry_init: Opentelemetry Module init completed! 2024/06/05 06:59:04 [notice] 1#1: using the "epoll" event method 2024/06/05 06:59:04 [notice] 1#1: nginx/1.26.0 2024/06/05 06:59:04 [notice] 1#1: built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2) 2024/06/05 06:59:04 [notice] 1#1: OS: Linux 6.5.0-1020-aws 2024/06/05 06:59:04 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 2024/06/05 06:59:04 [notice] 1#1: start worker processes 2024/06/05 06:59:04 [notice] 1#1: start worker process 27 2024/06/05 06:59:04 [notice] 1#1: start worker process 28 2024/06/05 06:59:04 [notice] 1#1: start cache manager process 29 2024/06/05 06:59:04 [notice] 1#1: start cache loader process 30 2024/06/05 06:59:04 [error] 27#27: mod_opentelemetry: ngx_http_opentelemetry_init_worker: Initializing Nginx Worker for process with PID: 27 2024/06/05 06:59:04 [error] 28#28: mod_opentelemetry: ngx_http_opentelemetry_init_worker: Initializing Nginx Worker for process with PID: 28 2024/06/05 06:59:04 [error] 29#29: mod_opentelemetry: ngx_http_opentelemetry_init_worker: Initializing Nginx Worker for process with PID: 29 2024/06/05 06:59:04 [error] 30#30: mod_opentelemetry: ngx_http_opentelemetry_init_worker: Initializing Nginx Worker for process with PID: 30 2024/06/05 07:00:33 [notice] 30#30: http file cache: /var/cache/contentful 136.043M, bsize: 512 2024/06/05 07:00:33 [notice] 1#1: signal 17 (SIGCHLD) received from 30 2024/06/05 07:00:33 [notice] 1#1: cache loader process 30 exited with code 0 2024/06/05 07:00:33 [notice] 1#1: signal 29 (SIGIO) received
Additional context:
The text was updated successfully, but these errors were encountered:
Thanks for the report.
The nginx module is part of the https://github.com/open-telemetry/opentelemetry-cpp-contrib repository, not https://github.com/open-telemetry/opentelemetry-cpp.
Migrating the issue to contrib.
Sorry, something went wrong.
Root cause:
static ngx_int_t ngx_http_opentelemetry_init(ngx_conf_t *cf) { ... ngx_writeError(cf->cycle->log, __func__, "Starting Opentelemetry Module init");
The issue is not with NginxModuleTraceAsError, but more like ngx_writeError() used instead of ngx_writeTrace().
ngx_writeError()
ngx_writeTrace()
Related:
No branches or pull requests
Describe your environment:
Steps to reproduce:
ngx_http_opentelemetry_module
.NginxModuleTraceAsError
directive to eitherON
orOFF
in the Nginx configuration.What is the expected behavior?
NginxModuleTraceAsError
is set toON
, trace logs should appear in the error logs.NginxModuleTraceAsError
is set toOFF
, trace logs should not appear in the error logs.What is the actual behavior?
NginxModuleTraceAsError
is set toON
orOFF
, trace logs are always written to the error logs.Error Log:
Additional context:
NginxModuleTraceAsError
does not seem to have any effect on the logging behavior.The text was updated successfully, but these errors were encountered: