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

Errors/Warnings in service's log #10995

Open
guyzmo opened this issue Oct 9, 2024 · 1 comment
Open

Errors/Warnings in service's log #10995

guyzmo opened this issue Oct 9, 2024 · 1 comment

Comments

@guyzmo
Copy link

guyzmo commented Oct 9, 2024

When I look at the logs in google cloud (like for the deployments), I have many warnings like:

/usr/local/lib/python3.12/site-packages/ddtrace/vendor/psutil/_pslinux.py:527: RuntimeWarning: 'sin' and 'sout' swap memory stats couldn't be determined and were set to 0 ([Errno 2] No such file or directory: '/proc/vmstat'

or like:

2024-10-09 17:18:04,601 WARNING [ddtrace.internal.writer.writer] [writer.py:255] [dd.service=core dd.env=staging dd.version=1 dd.trace_id=0 dd.span_id=0] - sent 2.79KB in 5.23711s to http://localhost:8126/v0.5/traces

or

failed to submit span stats to the Datadog agent at http://localhost:8126/v0.6/stats, 2 additional messages skipped

Is there a way to silence them? Or maybe I have something wrong that I should fix? Or maybe there's some env variables I should turn off (for swap memory stats)?

@hulkholden
Copy link

In our logger setup we do this to silence these chatty messages:

    logging.getLogger("ddtrace.internal.writer").setLevel(logging.FATAL)

(I don't know if it's the best way to handle them but it works for us).

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

No branches or pull requests

2 participants