Open mshafiee opened 3 weeks ago
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.
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()
.
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.