Skip to content

Commit

Permalink
Added app insights package (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-c-dfe authored Oct 24, 2024
1 parent 8464c5d commit 0c1f216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<PackageReference Include="contentful.aspnetcore" Version="8.3.0" />
<PackageReference Include="GovUk.Frontend.AspNetCore" Version="2.2.0" />
<PackageReference Include="jQuery" Version="3.7.1" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="moq" Version="4.20.72" />
<PackageReference Include="OwaspHeaders.Core" Version="8.1.3" />
<PackageReference Include="RobotsTxtCore" Version="3.0.0" />
Expand Down
1 change: 1 addition & 0 deletions src/Dfe.EarlyYearsQualification.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using RobotsTxt;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddApplicationInsightsTelemetry();
builder.WebHost.ConfigureKestrel(serverOptions => { serverOptions.AddServerHeader = false; });

var useMockContentful = builder.Configuration.GetValue<bool>("UseMockContentful");
Expand Down

0 comments on commit 0c1f216

Please sign in to comment.