open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
121 stars 129 forks source link

OpenTelemetry throws error "otel_stopInteraction: result code: 25" #360

Open royteeuwen opened 5 months ago

royteeuwen commented 5 months ago

Describe your environment Redhat 7.9, Apache 2.4

Steps to reproduce I have installed the OpenTelemetry Apache module by following the guide and by triggering the install.sh for creating the log4cxx xml. When creating a request to httpd2.4 the following errors are thrown:

[Thu Jan 18 14:55:23.015917 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: initialize_opentelemetry: config retrieved from process memory pool
[Thu Jan 18 14:55:23.015955 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_hook_header_parser_begin: dev:demo-dispatcher:server1.be.srv.dev.sys
[Thu Jan 18 14:55:23.016045 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_hook_header_parser_begin: request begin successful
[Thu Jan 18 14:55:23.016158 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_stopInteraction: result code: 25
[Thu Jan 18 14:55:23.016210 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "tracestate" : ""
[Thu Jan 18 14:55:23.016218 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "traceparent" : "00-0423becfe0f47d783410b20e013ad9aa-03005d060532c582-01"
[Thu Jan 18 14:55:23.016222 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: mod_proxy.c: interaction begin successful
[Thu Jan 18 14:55:23.018579 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_stopInteraction: result code: 25
[Thu Jan 18 14:55:23.018639 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "tracestate" : ""
[Thu Jan 18 14:55:23.018652 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "traceparent" : "00-0423becfe0f47d783410b20e013ad9aa-96d3629028c462d8-01"
[Thu Jan 18 14:55:23.018657 2024] [otel_apache:error] [pid 1633:tid 140562954786560] mod_opentelemetry_webserver_sdk: disp_apache2.c: interaction begin successful

What is the expected behavior? I would expect that a trace is passed to the otel endpoint

What is the actual behavior? Nothing reaches the otel endpoint

royteeuwen commented 5 months ago

I have tried again using the OOTB apache_centos7 image that is built in this project, giving the same result, namely a result code 25

Can anyone clarify what this result code 25 is? Maybe it's a configuration setting?

gofrolist commented 4 months ago

I have the same error mod_opentelemetry_webserver_sdk: otel_stopInteraction: result code: 25