<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.IHeartbeatProvider

Internal interface for providing heartbeat information into the SDK pipeline. Useful for mocking for unit test purposes.
string InstrumentationKey { get; set; }

bool AddHeartbeatProperty(string propertyName, bool overrideDefaultField, string propertyValue, bool isHealthy)

void Initialize(TelemetryConfiguration configuration)

bool SetHeartbeatProperty(string propertyName, bool overrideDefaultField, string propertyValue = null, bool? isHealthy = default)