Add Azure Application Insights.

This commit is contained in:
2020-06-02 01:28:16 +01:00
parent e917b57840
commit 54daf02a40
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
<PackageReference Include="ChoPGP" Version="1.0.1.2" />
<PackageReference Include="MailKit" Version="2.7.0" />
<PackageReference Include="Markdig" Version="0.20.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.14.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.0.0" />

View File

@@ -32,6 +32,8 @@ namespace Aaru.Server
options.User.RequireUniqueEmail = true;
}).AddEntityFrameworkStores<AaruServerContext>();
services.AddApplicationInsightsTelemetry();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
}