Open jseiser opened 7 months ago
We are experiencing similar issue on RHEL 7.3:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
# nginx -v
nginx version: nginx/1.23.1
We have similar issues, for Apache:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
httpd -v
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Apr 28 2023 16:54:19
[Thu Jan 18 11:26:01.089991 2024] [core:notice] [pid 28469:tid 140216020469952] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Jan 18 11:26:01.217388 2024] [mpm_event:notice] [pid 28469:tid 140216020469952] AH00489: Apache/2.4.34 (Red Hat) Communique/4.3.2 OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Thu Jan 18 11:26:01.217419 2024] [core:notice] [pid 28469:tid 140216020469952] AH00094: Command line: '/opt/rh/httpd24/root/usr/sbin/httpd -D FOREGROUND'
[Thu Jan 18 11:26:01.222609 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_http2.c
[Thu Jan 18 11:26:01.222637 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_http2.c
[Thu Jan 18 11:26:01.222642 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: fixups Module: mod_proxy.c
[Thu Jan 18 11:26:01.222646 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: insert_filter Module: disp_apache2.c
[Thu Jan 18 11:26:01.222650 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: disp_apache2.c
[Thu Jan 18 11:26:01.222653 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_http2.c
[Thu Jan 18 11:26:01.222661 2024] [otel_apache:error] [pid 28509:tid 140216020469952] insertHooksForStage: Instrumentation Hooks added. Stage: handler Module: mod_proxy.c
[Thu Jan 18 11:26:01.222665 2024] [otel_apache:error] [pid 28509:tid 140216020469952] otel_create_dir_config: (p == 0x564e9cb59188, dirspec == )
[Thu Jan 18 11:26:01.222669 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_enabled(ON)
[Thu Jan 18 11:26:01.222672 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_otelExporterType(otlp)
[Thu Jan 18 11:26:01.222676 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_otelExporterEndpoint(aapmbea1.be.srv.dev.sys:8200)
[Thu Jan 18 11:26:01.222679 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_otelProcessorType(simple)
[Thu Jan 18 11:26:01.222682 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_serviceName(demo)
[Thu Jan 18 11:26:01.222685 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_serviceNamespace(demo-namespace)
[Thu Jan 18 11:26:01.222688 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_serviceInstanceId(demo-id)
[Thu Jan 18 11:26:01.222691 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: Context demo-namespace:demo:demo-id:demo-namespace,demo,demo-id
[Thu Jan 18 11:26:01.222695 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_resolveBackends(ON)
[Thu Jan 18 11:26:01.222698 2024] [otel_apache:error] [pid 28509:tid 140216020469952] Config: otel_set_traceAsError(ON)
Error: OTEL_SDK_STATUS_CODE otel::core::WSAgent::init(OTEL_SDK_ENV_RECORD*, unsigned int): Error Code: 1
Error: OTEL_SDK_STATUS_CODE otel::core::WSAgent::init(OTEL_SDK_ENV_RECORD*, unsigned int): Error Code: 1
Error: OTEL_SDK_STATUS_CODE otel::core::WSAgent::init(OTEL_SDK_ENV_RECORD*, unsigned int): Error Code: 1
Error: OTEL_SDK_STATUS_CODE otel::core::WSAgent::init(OTEL_SDK_ENV_RECORD*, unsigned int): Error Code: 1
Could you please try the latest main branch? https://github.com/open-telemetry/opentelemetry-cpp/pull/2464 fixes a crash problem with gcc 4.8.
The latest main branch works for me! But I do have a PR open to fix some other things to make it work for our setup. Would you be able to look at this @owent ? see https://github.com/open-telemetry/opentelemetry-cpp-contrib/issues/364
The latest main branch works for me! But I do have a PR open to fix some other things to make it work for our setup. Would you be able to look at this @owent ? see #364
Sorry but I'm not fimalar with nginx API, maybe @seemk @tobiasstadler @kpratyus @ajaynagariya @debajitdas could help.
Describe your environment
partial Config
Steps to reproduce
/etc/ld.so.conf.d/nginx.conf
and add/opt/opentelemetry-webserver-sdk/sdk_lib/lib
to the file/etc/nginx/conf.d/opentelemetry_module.conf
What is the expected behavior? I would expect to see traces, we use the same config, on debian docker images and have no problems.
What is the actual behavior?