mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05: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 System;
|
||||||
using Bit.Icons.Services;
|
using Bit.Icons.Services;
|
||||||
|
using Microsoft.ApplicationInsights.Extensibility;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
@ -40,8 +41,17 @@ namespace Bit.Icons
|
|||||||
services.AddMvc();
|
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())
|
if(env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user