Skip to content
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

Merged
merged 5 commits into from
Dec 1, 2023

Conversation

jamescrosswell
Copy link
Collaborator

#skip-changelog

Resolves #2847

@jamescrosswell jamescrosswell marked this pull request as ready for review November 29, 2023 04:49
@@ -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>
Copy link
Member

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?

Copy link
Collaborator Author

@jamescrosswell jamescrosswell Nov 30, 2023

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).

Copy link
Member

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

Copy link
Member

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

@bitsandfoxes bitsandfoxes merged commit 0283fb6 into main Dec 1, 2023
19 checks passed
@bitsandfoxes bitsandfoxes deleted the confgiure_azuer_functions_2847 branch December 1, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove ConfigureFromConfigurationOptions<T> from Sentry.Azure.Functions.Worker
3 participants