Skip to content

Instantly share code, notes, and snippets.

@deanebarker
Created March 29, 2024 02:21
Show Gist options
  • Save deanebarker/cf8a48fec6be3347b0cf95d666e1916d to your computer and use it in GitHub Desktop.
Save deanebarker/cf8a48fec6be3347b0cf95d666e1916d to your computer and use it in GitHub Desktop.
An example showing how to shut off Opti UI telemetry
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
public class Startup
{
public void Configure(TelemetryConfiguration telemetryConfiguration)
{
telemetryConfiguration.DisableTelemetry = true;
TelemetryDebugWriter.IsTracingDisabled = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment