getsentry / getsentry/sentry-dotnet

Replace SdkVersion from reflection to source generator

Open
#2,992 0 comments 0 reactions 0 assignees View on GitHub
.NET Optimization Task
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

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`:

image

But still having this written with source generator would resolve this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.