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

nginx: It is not a main Request, not starting interaction

Open lework opened this issue 2 years ago • 2 comments

conf

NginxModuleEnabled ON;
NginxModuleOtelSpanExporter otlp;
NginxModuleOtelExporterEndpoint xxx.com:4317;
NginxModuleServiceName app;
NginxModuleServiceNamespace test;
NginxModuleServiceInstanceId app-hostname;
NginxModuleResolveBackends ON;
NginxModuleTraceAsError ON;

log

2023/03/17 10:34:31 [error] 26#26: *205 mod_opentelemetry: otel_startInteraction: It is not a main Request, not starting interaction, client: 10.130.39.184, server: default, request: "POST /test HTTP/1.1", host
: "promotion.api.ickey.cn", referrer: "test.com"

lework avatar Mar 17 '23 02:03 lework

I got the same error log by referring to this blog:https://opentelemetry.io/blog/2022/instrument-nginx/

nginx version: 1.18.0

[error] 80486#80486: *1 mod_opentelemetry: otel_startInteraction: It is not a main Request, not starting interaction, client: ::1, server: _, request: "GET / HTTP/1.1", host: "localhost:8080"

Coldilocks avatar Apr 07 '23 07:04 Coldilocks

Faced the same problem

none0nfg avatar Apr 17 '24 13:04 none0nfg