mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
disable app insights telemetry from core.all libs
This commit is contained in:
parent
294a80436e
commit
21f614bb2e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user