sentry-dotnet
sentry-dotnet copied to clipboard
Improved Support for AWS Lambda
AWS Lambda has the simple approach where you add a method, and the ASP.NET Core Server
approach.
For the latter we already have a good sample in this repo and docs and even a Wizard at Sentry already. For the former, the suggestion is still Sentry.Init
and Flush
which is OK but could be improved.
The goal is to provide a package that would make using Sentry really easy (ideally no code change, only DSN in a configuration file or just a small code change). An example of that is the integration with Google Cloud Platform that's going to be merged once is out of Beta: https://github.com/getsentry/sentry-dotnet/pull/529
There are new examples of AWS Lambda Extensions that could be a solution but require investigation.
Related to: #281
.NET 6 support added with some new features: https://aws.amazon.com/blogs/compute/introducing-the-net-6-runtime-for-aws-lambda/
@SeanFeldman - we should do a package similar to the one you did for Azure Functions in #2346
Please also take a look at #1825 - which I was unable to reproduce, but is illustrative of the types of challenges with AWS Lambda.
Current docs are here: https://docs.sentry.io/platforms/dotnet/guides/aws-lambda/
These also indicate that Lambda requires ASP.NET Core - which shouldn't be the case unless except for web-based lambda functions.
We also would prefer to not have to use FlushOnCompletedRequest
- but that requires some mechanism for keeping our background worker alive.
Given the complexity and that this is not even that popular on other platforms we're lowering the priority and might revisit this in the future.
A prospective touch-sales customer just mentioned they require .NET Lambda support.
A prospective touch-sales customer just mentioned they require .NET Lambda support.
The SDK does support Lambda, it just could be improved. Is there anything specific they are missing?