getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
598 stars 206 forks source link

Initial scope sync for native integrations #2923

Open vaind opened 11 months ago

vaind commented 11 months ago

Native integrations should sync the contexts when they're started. Currently, this is not possible because contexts are only filled in when a first managed event is being processed.

See https://github.com/getsentry/sentry-dotnet/blob/217c11cea611a5f26e4a1abfbb7df37f34695722/src/Sentry/Platforms/Native/SentrySdk.cs#L24_L37

bitsandfoxes commented 2 months ago

If I get that right, the .NET SDK is holding off on it as to avoid any unnecessary work? But in case of a native event it's too late to provide the missing context.