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

DeprecationWarning: datetime.datetime.utcfromtimestamp #11608

Open
joaonsantos opened this issue Dec 2, 2024 · 0 comments
Open

DeprecationWarning: datetime.datetime.utcfromtimestamp #11608

joaonsantos opened this issue Dec 2, 2024 · 0 comments

Comments

@joaonsantos
Copy link

joaonsantos commented Dec 2, 2024

Summary of problem

When using python 3.12 and ddtrace 2.14.4 we get a deprecation warning:

/usr/src/.venv/lib/python3.12/site-packages/ddtrace/profiling/exporter/http.py:220: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).

This started burning through our log quota and the alternative is to add a warnings filter which is not ideal.

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

1 participant