mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 09:59:13 -05:00
15 lines
416 B
C#
15 lines
416 B
C#
using Microsoft.ApplicationInsights.Channel;
|
|
using Microsoft.ApplicationInsights.Extensibility;
|
|
using System.Reflection;
|
|
|
|
namespace ChrisKaczor.HomeMonitor.Power.Service
|
|
{
|
|
public class TelemetryInitializer : ITelemetryInitializer
|
|
{
|
|
public void Initialize(ITelemetry telemetry)
|
|
{
|
|
telemetry.Context.Cloud.RoleName = Assembly.GetEntryAssembly()?.GetName().Name;
|
|
}
|
|
}
|
|
}
|