Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown directive "NginxModuleAttributes" #402

Open
alexciw opened this issue Mar 22, 2024 · 1 comment
Open

unknown directive "NginxModuleAttributes" #402

alexciw opened this issue Mar 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alexciw
Copy link

alexciw commented Mar 22, 2024

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;
@alexciw alexciw added the bug Something isn't working label Mar 22, 2024
@G-Akiraka
Copy link

nginx 1.24.0 The same as yours
2024/04/08 17:58:57 [emerg] 224#224: unknown directive "NginxModuleAttributes" in /etc/nginx/conf.d/opentelemetry_module.conf:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants