feat: add sentry

This commit is contained in:
cswimr 2024-12-31 19:02:22 -05:00
parent 4973464c88
commit 4a6bca20bc
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 7 additions and 0 deletions

View file

@ -16,6 +16,12 @@ if (config?.GlobalToken == "CHANGE-ME")
);
}
// Sentry
if (config?.UseSentry == true)
{
builder.WebHost.UseSentry();
}
// Add services to the container.
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
builder.Services.AddHttpLogging(o => { });

View file

@ -10,6 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Sentry.AspNetCore" Version="5.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
</ItemGroup>