/// <summary> /// Explicitly updates context properties to be appended to future calls to the current telemetry pipeline /// </summary> /// <param name="property"></param> /// <param name="value"></param> public static void AddOrUpdateContextProperty(string property, string value) { if (!IsEnabled) { return; } try { Telemetry.AddOrUpdateContextProperty(property, value); } catch (Exception) { } }
/// <summary> /// Explicitly updates context properties to be appended to future calls to the current telemetry pipeline /// </summary> /// <param name="property"></param> /// <param name="value"></param> public static void AddOrUpdateContextProperty(string property, string value) { if (!IsEnabled) { return; } try { Telemetry.AddOrUpdateContextProperty(property, value); } #pragma warning disable CA1031 // Do not catch general exception types catch (Exception e) { ReportException(e); } #pragma warning restore CA1031 // Do not catch general exception types }