Sentry documentation only mentions the AspNetCore version
https://sentry.io/getcodepl/aspnet-core/getting-started/dotnet-aspnetcore/
Sentry documentation only mentions the AspNetCore version
https://sentry.io/getcodepl/aspnet-core/getting-started/dotnet-aspnetcore/
Install-Package Sentry.AspNetCore
[FunctionName("Function1")]
public static async Task RunAsync([TimerTrigger("0 */5 * * * *", RunOnStartup = true)] TimerInfo myTimer, ILogger log)
{
using (SentrySdk.Init())
{
try
{
//Code
}
catch (Exception ex)
{
SentrySdk.CaptureException(ex);
throw; //if you want to pass it into Azure
}
}
}
local.settings.json "Values": {
"SENTRY_DSN": "https://your-dsn-url.ingest.sentry.io/xxx"
}