getsentry / getsentry/sentry-dotnet
Replace SdkVersion from reflection to source generator
Open
.NET
Optimization
Task
- Dominant language
- C#
- Stars
- 770
- Forks
- 248
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 49
Description
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`:
But still having this written with source generator would resolve this
Contributor guide
Assessment
This issue has not been assessed yet.