open-telemetry / opentelemetry-cpp-contrib

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

insertHooksForStage: Instrumentation Hooks NOT added. Max hooks for stage. Stage: fixups Module #339

Open ramurayudu opened 7 months ago

ramurayudu commented 7 months ago

Describe your environment apache 2.4 docker image otel/opentelemetry-collector:0.88.0

Steps to reproduce I'm using Apache 2.4 P server image on top of it we have custom configuration and modules are included in order to run the web server unfortunately when Pod is starting it is running fine and getting these errors and unable to send the traces to otel collector

What is the expected behavior? Otel collector should able to receive traces from Apache server 2.4 and we can see it in Jeager UI.

What is the actual behavior? getting error in apache server pod and unable to send traces.

Additional context Error log.

[Wed Nov 15 02:00:10.854622 2023] [core:notice] [pid 1:tid 140320965756800] AH00094: Command line: 'httpd -D FOREGROUND' [Wed Nov 15 02:00:10.855156 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_http2.c [Wed Nov 15 02:00:10.855173 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_http2.c [Wed Nov 15 02:00:10.855175 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_charset_lite.c [Wed Nov 15 02:00:10.855177 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_cern_meta.c [Wed Nov 15 02:00:10.855180 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_proxy.c [Wed Nov 15 02:00:10.855182 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks NOT added. Max hooks for stage. Stage: fixups Module: mod_dav.c [Wed Nov 15 02:00:10.855183 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: insert_filter Module: mod_charset_lite.c [Wed Nov 15 02:00:10.855187 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_proxy.c [Wed Nov 15 02:00:10.855189 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_proxy_balancer.c [Wed Nov 15 02:00:10.855190 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_dav.c [Wed Nov 15 02:00:10.855192 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_asis.c [Wed Nov 15 02:00:10.855196 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_imagemap.c [Wed Nov 15 02:00:10.855197 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_limitfilesize.c [Wed Nov 15 02:00:10.855199 2023] [otel_apache:error] [pid 9:tid 140320965756800] insertHooksForStage: Instrumentation Hooks added. Stage: log_transaction Module: mod_log_forensic.c [Wed Nov 15 02:00:10.855201 2023] [otel_apache:error] [pid 9:tid 140320965756800] otel_create_dir_config: (p == 0x7f9f05512028, dirspec == ) [Wed Nov 15 02:00:10.855203 2023] [otel_apache:error] [pid 9:tid 140320965756800] Config: otel_set_enabled(ON) [Wed Nov 15 02:00:10.855204 2023] [otel_apache:error] [pid 9:tid 140320965756800] Config: otel_set_otelExporterType(otlp)

[Wed Nov 15 02:00:12.106024 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: initialize_opentelemetry: Adding Context: ic-dev:Apache-dev-mdn-traces:DemoInstanceId ServiceNamespace: ic-dev ServiceName: Apache-dev-mdn-traces ServiceInstanceId: DemoInstanceId [Wed Nov 15 02:00:12.108414 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: initialize_opentelemetry: initializing SDK succceeded [Wed Nov 15 02:00:12.108462 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_hook_header_parser_begin: ic-dev:Apache-dev-mdn-traces:DemoInstanceId [Wed Nov 15 02:00:12.108603 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_hook_header_parser_begin: request begin successful [Wed Nov 15 02:00:12.108705 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_stopInteraction: result code: 25 [Wed Nov 15 02:00:12.108736 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "tracestate" : "" [Wed Nov 15 02:00:12.108744 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "traceparent" : "00-42a46148bb5306aca05543925037ce40-8e1e3e6164298036-01" [Wed Nov 15 02:00:12.108747 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: mod_proxy.c: interaction begin successful [Wed Nov 15 02:00:12.108775 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "tracestate" : "" [Wed Nov 15 02:00:12.108779 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "traceparent" : "00-42a46148bb5306aca05543925037ce40-becb1238a32b636e-01" [Wed Nov 15 02:00:12.108781 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: mod_proxy_balancer.c: interaction begin successful [Wed Nov 15 02:00:12.108795 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_stopInteraction: result code: 25 [Wed Nov 15 02:00:12.108802 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_stopInteraction: result code: 25 [Wed Nov 15 02:00:12.108818 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "tracestate" : "" [Wed Nov 15 02:00:12.108831 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: otel_payload_decorator: correlation information : "traceparent" : "00-42a46148bb5306aca05543925037ce40-db48d5956bb5b1ca-01" [Wed Nov 15 02:00:12.108833 2023] [otel_apache:error] [pid 9:tid 140320599697088] mod_opentelemetry_webserver_sdk: mod_dav.c: interaction begin successful 127.0.0.1 - - [15/Nov/2023:02:00:12 -0800] "GET /server-status HTTP/1.1" 200 4736

image image
lalitb commented 7 months ago

@DebajitDas can you help here.