in src/Telemetry/Telemetry.cs [217:239]
private void TrackEventTask(
string eventName,
IDictionary<TelemetryPropertyName, string> properties,
IDictionary<TelemetryMeasureName, double> measurements)
{
if (this._client is null)
{
return;
}
try
{
Dictionary<string, string> eventProperties = this.GetEventProperties(properties);
Dictionary<string, double> eventMeasurements = this.GetEventMeasures(measurements);
this._client.TrackEvent($"{EventsNamespace}/{eventName}", eventProperties, eventMeasurements);
this._client.Flush();
}
catch (Exception e)
{
this._logger.LogError($"Error sending event {eventName}. Message={e.Message}");
}
}