-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed ConfigureFromConfigurationOptions from Sentry.Azure.Functions.Worker #2920
Conversation
@@ -6,6 +6,11 @@ | |||
<Description>Official Azure Functions Worker SDK integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time.</Description> | |||
</PropertyGroup> | |||
|
|||
<PropertyGroup Condition="'$(FrameworkSupportsAot)' == 'true'"> | |||
<IsAotCompatible>true</IsAotCompatible> | |||
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we always set this when IsAotCompatible is true? If so, should we set this in the Directory.Build.Props where we define IsAotCompatible instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only set it for NuGet packages that we intend to support AOT. At the moment that's:
- Sentry.csproj
- Sentry.AspNetCore.csproj
- Sentry.Azure.Functions.Worker.csproj
- Sentry.Extensions.Logging.csproj
- Sentry.Maui.csproj
- Sentry.NLog.csproj
- Sentry.OpenTelemetry.csproj
- Sentry.Profiling.csproj
- Sentry.Serilog.csproj
Still missing are:
- Sentry.Android.AssemblyReader.csproj
- Sentry.AspNet.csproj (N/A Legacy)
- Sentry.AspNetCore.Grpc.csproj (TODO?)
- Sentry.Bindings.Android.csproj (???)
- Sentry.Bindings.Cocoa.csproj (???)
- Sentry.DiagnosticSource.csproj (N/A Legacy?)
- Sentry.EntityFramework.csproj (N/A Legacy)
- Sentry.Google.Cloud.Functions.csproj (TODO?)
- Sentry.Log4Net.csproj (N/A Legacy)
I think this is related to #2890. Once everything that targets net8.0 is AotCompatible, we could put this in the Directory.Build.props
but I don't think we can do that yet (and not in this PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Android ones are OK for now since they don't AOT there yet
Bindings.Cocoa is a good idea, we'll NativeAOT that to get line numbers
GCF has very little code but little use on that, but serverless is always good AOT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we can add the false
explicitly where needed
#skip-changelog
Resolves #2847