sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Replace SdkVersion from reflection to source generator

Open bruno-garcia opened this issue 1 year ago • 0 comments

image

While adding #2709 I noticed we're causing blocking on the first access to the SDK version. This could be replaced by something source generated so the value is available in some const

Edit:

It actually looks like thsi block is done by synchronization done by Lazy<T>: image But still having this written with source generator would resolve this

bruno-garcia avatar Dec 22 '23 16:12 bruno-garcia