private void TrackExceptionTask()

in src/Telemetry/Telemetry.cs [241:263]


        private void TrackExceptionTask(
            Exception exception,
            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.TrackException(exception, eventProperties, eventMeasurements);
                this._client.Flush();
            }
            catch (Exception e)
            {
                this._logger.LogError($"Error sending exception event. Message={e.Message}");
            }
        }