open-telemetry / opentelemetry-cpp-contrib

https://opentelemetry.io/
Apache License 2.0
123 stars 137 forks source link

ApacheModuleOtelExporterHeaders Syntax Error #322

Open khpeet opened 1 year ago

khpeet commented 1 year ago

Getting the following syntax error when trying to configure export directly in apache module conf:

AH00526: Syntax error on line 17 of /etc/apache2/conf-enabled/opentelemetry_module.conf:
Invalid command 'ApacheModuleOtelExporterHeaders', perhaps misspelled or defined by a module not included in the server configuration

Config:

ApacheModuleOtelExporterEndpoint https://otlp.test.net:4317
ApacheModuleOtelExporterHeaders api-key=4id9f8...

Running Apache 2.4, Ubuntu 20.04

Steps to reproduce

  1. Uncomment export headers
  2. Try to restart apache (or stop/start)

What is the expected behavior? Ability to export successfully, with no errors.

pnvnd commented 1 year ago

I tried building opentelemetry-webserver-sdk-x64-linux.tgz over the weekend myself and can confirm the ApacheModuleOtelExporterHeaders is also not working for me.