Closed toadjaune closed 4 months ago
After further testing, this seems to be a regression introduced by version 1.2.0
; 1.1.0
does not exhibit the bug.
I guess this is the same issue. We receive these logs since upgrade to version 1.2.0 and 1.2.1, respectively.
2024/07/25 11:43:58 [error] 42#42: *141704 Executing invalid Datadog script while sending to client, client: 10.0.38.226, server: localhost, ...
2024/07/25 11:43:58 [error] 42#42: *141704 Condition expression for directive at :0 evaluated to unexpected value "". Expected "on" or "off". Proceeding as if the value were "off". while sending to client
Tested on nginx 1.25.4 for 1.1.0 dd plugin, 1.26.0 for 1.1.0, 1.27.0 for dd plugin version 1.2.1.
Observing same exact issue in version 1.2.0
It looks similar to my issue #94, which has been merged and will be part of the next release. In the meantime, we have built the module ourselves from the master
branch, and it appears to work without issue in our pre-production environments.
Indeed it does. Sorry for the duplicate !
Description
For every request, 2 error log lines are generated, like those :
Please note that despite the presence of those logs, the traces are correctly sent.
System info
Ubuntu 24.04 LTS
Linux <hostname> 6.8.0-1011-aws #12-Ubuntu SMP Fri Jun 21 18:30:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
nginx/1.24.0 (Ubuntu)
/1.24.0-2ubuntu7
1.2.1
Agent 7.55.1 - Commit: 8ec9dff - Serialization version: v5.0.119 - Go version: go1.21.11
Minimal reproducing configuration
apt install nginx
/usr/lib/nginx/modules/
nginx.conf
:user www-data; worker_processes auto; pid /run/nginx.pid; error_log /var/log/nginx/error.log;
events { worker_connections 768; }
http { server { listen 80 default_server; listen [::]:80 default_server;
} }