dd-trace-php
dd-trace-php copied to clipboard
"Cannot open request init hook" should not be logged as debug
It seems to be an error, isn't it?
https://github.com/DataDog/dd-trace-php/blob/a219e080bb1333b0a2d3ec14003100d9a2c8f4a4/ext/php7/request_hooks.c#L133
Thank you for the feature request @gnumoksha. At the moment the tracer does not support log levels so all messages are logged when DD_TRACE_DEBUG=1
. I cannot provide an ETA for adding log levels, but we do plan to support log levels in a future release and this message would certainly classify as an error-level message.
Ok. It would be nice to describe on the documentation that DD_TRACE_DEBUG also turns on error logs