feat(Sentry): add exception monitoring feature

#Comment
comment Sentry.AspNetCore
This commit is contained in:
Argo Zhang 2019-05-28 16:13:36 +08:00
parent f303e8cda6
commit 29cc25c647
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="3.1.2" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.7.9" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" PrivateAssets="All" />
<PackageReference Include="Sentry.AspNetCore" Version="1.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
</ItemGroup>

View File

@ -22,6 +22,6 @@ namespace Bootstrap.Admin
/// <param name="args"></param>
/// <returns></returns>
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args).UseStartup<Startup>();
WebHost.CreateDefaultBuilder(args).UseSentry("https://70bdfff562e84fa7b9a43d65924ab9ad@sentry.io/1469396").UseStartup<Startup>();
}
}