Skip to content

Commit b4a0c09

Browse files
authored
Update Program.cs
1 parent c990d30 commit b4a0c09

File tree

1 file changed

+2
-2
lines changed
  • ApplicationInsights.RedactSensitiveInformation/ApplicationInsights.RedactSensitiveInformation

1 file changed

+2
-2
lines changed

ApplicationInsights.RedactSensitiveInformation/ApplicationInsights.RedactSensitiveInformation/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// DEMO ONLY: Don't put credentials in code - use Azure Key Vault, or applicable protected configuration services.
1111
// I am using the connection string in code for clarity and avoiding unnecessary logic that distracts from the focus of the demo.
12-
const string connectionString = "InstrumentationKey=9a53e1c4-6c7b-4186-8a5a-55710e9ddd7e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/";
12+
const string connectionString = "InstrumentationKey=<GUID>;IngestionEndpoint=https://<endpoint>.in.applicationinsights.azure.com/;LiveEndpoint=https://<endpoint>.livediagnostics.monitor.azure.com/";
1313

1414
#region Wire-up
1515

@@ -54,4 +54,4 @@
5454
var telemetryClient = serviceProvider.GetRequiredService<TelemetryClient>();
5555
telemetryClient.Flush();
5656
Task.Delay(5000).Wait();
57-
57+

0 commit comments

Comments
 (0)