public static void NoticeError(Exception exception) { const ApiMethod apiMetric = ApiMethod.NoticeError; const string apiName = nameof(NoticeError); void work() { InternalApi.NoticeError(exception); } TryInvoke(work, apiName, apiMetric); }
public static void NoticeError(string message, IDictionary <string, object>?customAttributes, bool isExpected) { const ApiMethod apiMetric = ApiMethod.NoticeError; const string apiName = nameof(NoticeError); void work() { InternalApi.NoticeError(message, customAttributes, isExpected); } TryInvoke(work, apiName, apiMetric); }
public static void NoticeError(Exception exception, IDictionary <string, object>?customAttributes) { const ApiMethod apiMetric = ApiMethod.NoticeError; const string apiName = nameof(NoticeError); void work() { InternalApi.NoticeError(exception, customAttributes); } TryInvoke(work, apiName, apiMetric); }