diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 9b68be85e9..bd3d10a2f4 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -46,7 +46,6 @@ namespace Bit.Api if(env.IsDevelopment()) { builder.AddUserSecrets(); - builder.AddApplicationInsightsSettings(developerMode: true); } builder.AddEnvironmentVariables(); @@ -60,8 +59,6 @@ namespace Bit.Api public void ConfigureServices(IServiceCollection services) { - services.AddApplicationInsightsTelemetry(Configuration); - var provider = services.BuildServiceProvider(); // Options @@ -245,10 +242,6 @@ namespace Bit.Api // Rate limiting app.UseMiddleware(); - // Insights - app.UseApplicationInsightsRequestTelemetry(); - app.UseApplicationInsightsExceptionTelemetry(); - // Add static files to the request pipeline. app.UseStaticFiles(); diff --git a/src/Api/project.json b/src/Api/project.json index d0c7dded78..5ac8b0cdd8 100644 --- a/src/Api/project.json +++ b/src/Api/project.json @@ -19,7 +19,6 @@ "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", "Microsoft.Extensions.Configuration.Binder": "1.1.0", "Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0", - "Microsoft.ApplicationInsights.AspNetCore": "1.0.2", "AspNetCoreRateLimit": "1.0.5", "Serilog.Extensions.Logging": "1.3.1", "Serilog.Sinks.AzureDocumentDb": "3.5.17", diff --git a/src/Api/settings.json b/src/Api/settings.json index 9eea02b22f..4ee2f20ce9 100644 --- a/src/Api/settings.json +++ b/src/Api/settings.json @@ -1,7 +1,4 @@ { - "ApplicationInsights": { - "InstrumentationKey": "5e6c8e7c-8a6d-4d4b-866e-4b80e5b9203e" - }, "globalSettings": { "siteName": "bitwarden", "baseVaultUri": "http://localhost:4001",