Skip to content

Commit

Permalink
insights
Browse files Browse the repository at this point in the history
  • Loading branch information
glennc committed Nov 15, 2019
1 parent e7c54cd commit c8301c7
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/BlazingPizza.Menu/BlazingPizza.Menu.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
Expand All @@ -9,6 +9,8 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.9.5" />
<ProjectReference Include="..\BlazingPizza.Shared\BlazingPizza.Shared.csproj" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.12.0-beta2" />

</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/BlazingPizza.Menu/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<PizzaStoreContext>(options => options.UseSqlite("Data Source=pizza.db"));
services.AddControllers();
services.AddApplicationInsightsTelemetry();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down
2 changes: 2 additions & 0 deletions src/BlazingPizza.Orders/BlazingPizza.Orders.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.9.5" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.12.0-beta2" />

</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/BlazingPizza.Orders/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddSingleton<OrdersService>();
services.AddControllers();
services.AddGrpc();
services.AddApplicationInsightsTelemetry(Configuration);
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down
1 change: 1 addition & 0 deletions src/BlazingPizza.Web/BlazingPizza.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.12.0-beta2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="3.0.0" />
Expand Down
2 changes: 2 additions & 0 deletions src/BlazingPizza.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public void ConfigureServices(IServiceCollection services)
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});

services.AddApplicationInsightsTelemetry(Configuration);
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down
4 changes: 2 additions & 2 deletions src/BlazingPizza.Web/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"Authentication": {
"Twitter": {
"ConsumerKey": "iITmb8albSxRJJy7LAeEa6emJ",
"ConsumerSecret": "FFW9blJ5XpyNs5ByUHkbKNZsMG0vNs8ZrlatV4OgI8KWTlmpxn"
"ConsumerKey": "",
"ConsumerSecret": ""
}
},
"Services": {
Expand Down
Binary file added src/deploy.ps
Binary file not shown.
10 changes: 9 additions & 1 deletion src/k8s/menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,12 @@ spec:
image: "blazingreg.azurecr.io/blazingpizzamenu"
ports:
- name: http
containerPort: 80
containerPort: 80
volumeMounts:
- name: config-volume
mountPath: /config
volumes:
- name: config-volume
secret:
secretName:
menu-secrets

0 comments on commit c8301c7

Please sign in to comment.