open-telemetry / opentelemetry-cpp-contrib

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

Webserver v1.0.3 Install Issue #321

Closed khpeet closed 10 months ago

khpeet commented 10 months ago

Install appears to not have any errors, but there the module is not installed it appears. Details below

ubuntu@ip-172-31-x-x:/opt/opentelemetry-webserver-sdk$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal
ubuntu@ip-172-31-x-x:/opt/opentelemetry-webserver-sdk$ apachectl -V
Server version: Apache/2.4.41 (Ubuntu)
Server built:   2023-03-08T17:32:54
Server's Module Magic Number: 20120211:88
Server loaded:  APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"
ubuntu@ip-172-31-x-x:/opt/opentelemetry-webserver-sdk$ sudo ./install.sh
Install script for WebServer Instrumentation 1.0.3GA
Writing '/opt/opentelemetry-webserver-sdk/conf/appdynamics_sdk_log4cxx.xml'
ubuntu@ip-172-31-x-x:/opt/opentelemetry-webserver-sdk$ apachectl -M
Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_event_module (shared)
 negotiation_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 status_module (shared)

Steps to reproduce

  1. Unpack tar into /opt
  2. Run ./install.sh
  3. Check modules for otel-apache-module

What is the expected behavior? otel-apache-module loaded in the list.

What is the actual behavior? otel-apache-module not installed/loaded in the list.

khpeet commented 10 months ago

Have to reference the module in the main apache2.conf file to load it