Skip to content

Tracking lock acquisition/exit events #5413

Answered by noahfalk
julealgon asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Do you believe tracking lock scenarios as span events like this makes sense for observability, considering our scenario of heavy thread contention? Or should I consider actually using a span to track the entire critical section duration?

I suspect for many scenarios the telemetry this generates would be very verbose. .NET supports workloads that acquire and release locks millions of times per second. There certainly could be other scenarios where the verbosity is much lower or where the dev is willing to take high overheads, but my initial guess is that it would be somewhat limited.

  1. Do you know of any other mechanism that I could use to add those events without needing to rewrite al…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@julealgon
Comment options

@cijothomas
Comment options

@julealgon
Comment options

@cijothomas
Comment options

Comment options

You must be logged in to vote
1 reply
@julealgon
Comment options

Comment options

You must be logged in to vote
2 replies
@julealgon
Comment options

@cijothomas
Comment options

Answer selected by cijothomas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants