open-telemetry / open-telemetry/opentelemetry-cpp-contrib

ApacheModuleOtelExporterHeaders Syntax Error

Open
#322 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Webserver
Dominant language
Python
Stars
153
Forks
184
Avg merge
2d 9h
Merged PRs (30d)
26

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /etc/apache2/conf-enabled/opentelemetry_module.conf and reproduce the Apache 2.4 restart failure using the shown endpoint and headers directives. Then trace the Apache module's configuration entry points to determine why Apache rejects ApacheModuleOtelExporterHeaders; done means the configuration loads without AH00526 and export works.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, ubuntu
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.