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

Add configuration option to allow disabling Datadog extension/agent's own verbose logs #334

Open
clocked0ne opened this issue Jul 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@clocked0ne
Copy link

Our logs are flooded with these kinds of messages:

DEBUG	{"status":"debug","message":"datadog:Finishing inferred span"}
DEBUG	{"status":"debug","message":"datadog:Discarding Xray metadata subsegment due to sampling"}
DEBUG	{"status":"debug","message":"datadog:Reading Xray trace context from env var ..."}
DEBUG	{"status":"debug","message":"datadog:Flushing statsD"}

I've set up exclusion filters to try and filter these out, which is what Datadog support themselves recommended, but it doesn't seem to work consistently and doesn't seem like the logical way to do this.

I also don't want to change the logLevel configuration setting as my understanding is that this will affect other logs and not just the Extension/Agent's logs; perhaps this needs better documentation?

A configuration option such as verboseLogging: false to switch off generation of these log entries would be ideal.

@duncanista duncanista added the enhancement New feature or request label Jul 23, 2024
@purple4reina
Copy link
Contributor

You should be able to adjust the logLevel without it affecting anything but the extension and tracer logging. If using environment variables, this would mean removing the DD_LOG_LEVEL environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants