-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Azure Functions Documentation #10041
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-sdks-native for triage ⏲️ |
I reported this, and as I said the workaround, once I figured it out, was easy. If the incorrect code I chose (call All I would have needed is a hint to use either |
Thanks for letting us know. I'll update the docs. |
You're welcome, I'm relatively new to Azure Functions but as far as I can see Microsoft now seem to prefer to use the newer |
Based on the docs it depends whether you're using the ASP.NET Core integration the |
Core or SDK?
Platform/SDK
Which part? Which one?
https://docs.sentry.io/platforms/dotnet/guides/azure-functions-worker/#configure
Description
Reproted by user:"Not really knowing what I'm doing I tried to add Sentry to my basic Azure Functions app. The documentation suggested I use ConfigureFunctionsWorkerDefaults but there was already a call on ConfigureFunctionsWebApplication so I added the recommended the ConfigureFunctionsWorkerDefaults call before it. This is a bad idea, it compiles and all the functions appear to be callable and return "OK" results but with no data! This is because they are not actually called! Once you figure it out the fix is easy, just use ConfigureFunctionsWebApplication INSTEAD of ConfigureFunctionsWorkerDefaults. So I don't have a problem, just wanted to let someone know."
Suggested Solution
Clarify in the documentation, that users can choose between ConfigureFunctionsWorkerDefaults and ConfigureFunctionsWebApplication, depending on their specific app configuration.
The text was updated successfully, but these errors were encountered: