Created
March 29, 2024 02:21
-
-
Save deanebarker/cf8a48fec6be3347b0cf95d666e1916d to your computer and use it in GitHub Desktop.
An example showing how to shut off Opti UI telemetry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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