Describe your environment
OpentelemetryOperator: 0.99.0
OtelWebserverMoudle: 1.0.4
We are using the nginx instrumentation moudle of otel-webserver-module in our environment. But we found the module will generate multi propogation header(traceparent and tracestate), when request header's count is larger than 20.
What is the expected behavior?
The request send to echo server with only one propogation header
What is the actual behavior?
The request send to echo server with two propogation header:
Hostname: echo-67456bbd77-lb9vc
Pod Information:
node name: minikube
pod name: echo-67456bbd77-lb9vc
pod namespace: default
pod IP: 10.244.0.34
Server values:
server_version=nginx: 1.12.2 - lua: 10010
Request Information:
client_address=10.244.0.37
method=GET
real path=/api/hello
query=
request_version=1
request_scheme=http
request_uri=http://echo.default:8080/api/hello
Request Headers:
accept=*/*
connection=close
host=echo.default
key1=value1
key10=value10
key11=value11
key12=value12
key13=value13
key14=value14
key15=value15
key16=value16
key2=value2
key3=value3
key4=value4
key5=value5
key6=value6
key7=value7
key8=value8
key9=value9
traceparent=00-59bf9c6263e207f0e0396385591bdcd5-833345068aad29be-01
traceparent=00-59bf9c6263e207f0e0396385591bdcd5-474530dbae9782b7-01
tracestate=
user-agent=curl/7.81.0
Request Body:
-no body in request-
Additional context
Please review my case, thanks!
I have found the root cause which is related to header iteration of ngx_list_t and would be very like to make a PR
Describe your environment OpentelemetryOperator: 0.99.0 OtelWebserverMoudle: 1.0.4
We are using the nginx instrumentation moudle of otel-webserver-module in our environment. But we found the module will generate multi propogation header(traceparent and tracestate), when request header's count is larger than 20.
Steps to reproduce
00-install-instrumentation.yaml
refer: nginx instrumentation testcase01-install-app.yaml
apiVersion: v1 kind: ConfigMap metadata: name: nginx-conf data: nginx.conf: |
user nginx;
What is the expected behavior? The request send to echo server with only one propogation header
What is the actual behavior? The request send to echo server with two propogation header:
Additional context Please review my case, thanks! I have found the root cause which is related to header iteration of ngx_list_t and would be very like to make a PR