Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 88194ef

Browse files
Add traces to emit telemetry initialization and heartbeat config (#316)
1 parent 3adaf50 commit 88194ef

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/NuGet.Services.Logging/ApplicationInsights.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,14 @@ private static void InitializeTelemetryConfiguration(string instrumentationKey,
4040
if (heartbeatManager != null)
4141
{
4242
heartbeatManager.HeartbeatInterval = heartbeatInterval.Value;
43+
44+
Trace.TraceInformation($"Telemetry initialized using configured heartbeat interval: {heartbeatInterval.Value}.");
4345
}
4446
}
47+
else
48+
{
49+
Trace.TraceInformation($"Telemetry initialized using default heartbeat interval.");
50+
}
4551

4652
Initialized = true;
4753
}

0 commit comments

Comments
 (0)