feat: add sentry
This commit is contained in:
parent
4973464c88
commit
4a6bca20bc
2 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,12 @@ if (config?.GlobalToken == "CHANGE-ME")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sentry
|
||||||
|
if (config?.UseSentry == true)
|
||||||
|
{
|
||||||
|
builder.WebHost.UseSentry();
|
||||||
|
}
|
||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
||||||
builder.Services.AddHttpLogging(o => { });
|
builder.Services.AddHttpLogging(o => { });
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Sentry.AspNetCore" Version="5.0.0" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue