1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

disable app insights telemetry from core.all libs

This commit is contained in:
Kyle Spearrin 2017-10-23 09:03:27 -04:00
parent 294a80436e
commit 21f614bb2e

View File

@ -1,5 +1,6 @@
using System;
using Bit.Icons.Services;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
@ -40,8 +41,17 @@ namespace Bit.Icons
services.AddMvc();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
public void Configure(
IApplicationBuilder app,
IHostingEnvironment env,
TelemetryConfiguration telemetry)
{
try
{
telemetry.DisableTelemetry = true;
}
catch { }
if(env.IsDevelopment())
{
app.UseDeveloperExceptionPage();