sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Improved Support for AWS Lambda

Open bruno-garcia opened this issue 4 years ago • 5 comments

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

bruno-garcia avatar Jan 08 '21 23:01 bruno-garcia

.NET 6 support added with some new features: https://aws.amazon.com/blogs/compute/introducing-the-net-6-runtime-for-aws-lambda/

bruno-garcia avatar Feb 24 '22 18:02 bruno-garcia

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

mattjohnsonpint avatar Jun 05 '23 22:06 mattjohnsonpint

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.

bitsandfoxes avatar Jun 21 '23 14:06 bitsandfoxes

A prospective touch-sales customer just mentioned they require .NET Lambda support.

realkosty avatar Jan 03 '24 17:01 realkosty

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?

bitsandfoxes avatar Jan 04 '24 17:01 bitsandfoxes