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

unknown directive "NginxModuleAttributes"

Open
#402 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

Environment: openresty 1.25.3
opentelemetry-cpp-contrib version: v1.0.4
Refer to this document: https://opentelemetry.io/blog/2022/instrument-nginx/
I have the following configuration, after the configuration is complete when using openresty -t calibration it shows error unknown directive "NginxModuleAttributes". Removing the NginxModuleAttributes configuration checksum is as expected.

NginxModuleEnabled ON;
NginxModuleOtelSpanExporter otlp;
NginxModuleOtelExporterEndpoint trace.cloud.net:4317;
NginxModuleServiceName openresty;
NginxModuleServiceNamespace devops;
NginxModuleServiceInstanceId openresty.docker;
NginxModuleResolveBackends ON;
NginxModuleTraceAsError ON;
NginxModuleAttributes tps.tenant.id 123445;

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 by reproducing the configuration check with openresty -t and the listed opentelemetry-cpp-contrib v1.0.4 setup. Compare the Nginx instrumentation documentation with the directives supported by this module, focusing on NginxModuleAttributes. Done means the cause of the unknown directive is established and the supported configuration or required documentation change is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.