open-telemetry / open-telemetry/opentelemetry-cpp-contrib
unknown directive "NginxModuleAttributes"
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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