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

Getting error in profiling, _ProfiledThreadingLock object has no attribute _self_acquired_at #11343

Open
akira opened this issue Nov 10, 2024 · 4 comments
Assignees
Labels
Profiling Continous Profling

Comments

@akira
Copy link

akira commented Nov 10, 2024

Upgraded to the most recent release of ddtrace, 2.16.0.

We are now seeing this error on profiling:

Error recording lock release event: '_ProfiledThreadingLock' object has no attribute '_self_acquired_at'

We are seeing these errors, but it also appears to impact the applications as well (queue workers no longer dequeuing tasks). We are using asyncio with uvloop (0.19.0) and Python 3.11.10.

@mabdinur mabdinur added the Profiling Continous Profling label Nov 18, 2024
@akira
Copy link
Author

akira commented Dec 5, 2024

Any update on this? This is preventing usage of the profiler for us in the latest version, thanks!

@dannosaur
Copy link

Yep, we're seeing this too. For some reason, only on our celerybeat service.

Python 3.11.9, ddtrace 2.11.8.

@bvs-langchain
Copy link

bvs-langchain commented Dec 23, 2024

I'm seeing a different but seemingly related error with 2.16.0, python 3.11.8:

ddtrace.profiling.collector._lock: Failed to get lock variable name, we only support local/global variables and their attributes.

@audiolion
Copy link

We are also seeing this error:

Failed to get lock variable name, we only support local/global variables and their attributes.

On 2.18.1 with python 3.10

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

No branches or pull requests

6 participants