0.99.170
- Make agent logging more laconic
The receiver logging handlers were the only hot loops executed for every trace
(or for every span, sic) where no consolidation was done on logging.
This should make the logging more obvious and rate limit the error
messages to something that is usable by a human to debug without
spamming the log file.
- Make the agent application configure it's own log rotation
We previously delegated log rotation to dh_installlogrotate
with mixed
results. Some users saw log files balloon in size because logrotate
was
not configured. This change does the same job at the application level by
using seelog's rolling file
writer and removes any logging configuration specific to packaging systems.
- Honor log level set by env var / config file
We previously did not honor log levels set in configuration instead defaulting to one of DEBUG or INFO. This release actually makes sure DD_LOG_LEVEL
and [trace.config] log_level
settings are taken into account
- Allow configuring log file location
Add an option in datadog.conf
for writing logs to a location other than the default /var/log/datadog/trace-agent.log
. Use like so
# /etc/dd-agent/datadog.conf
[trace.config]
log_file: /mnt/dir/trace-agent.log
Rotated log files will be placed in the same directory
- Fix a bug in single trace normalization when handling spans with distinct trace ids