public static Guid WriteCallBefore(this DiagnosticListener @this, CallEventData eventData) { if (@this.IsEnabled(CSRedisBeforeCall)) { Guid operationId = Guid.NewGuid(); @this.Write(CSRedisBeforeCall, eventData); return(operationId); } return(Guid.Empty); }
public static void WriteCallError(this DiagnosticListener @this, Guid operationId, CallEventData eventData, Exception ex) { if (@this.IsEnabled(CSRedisErrorCall)) { @this.Write(CSRedisErrorCall, new { OperationId = operationId, EventData = eventData, Exception = ex }); } }
public static Guid WriteCallAfter(this DiagnosticListener @this, Guid operationId, CallEventData eventData) { if (@this.IsEnabled(CSRedisAfterCall)) { @this.Write(CSRedisAfterCall, new { OperationId = operationId, EventData = eventData }); return(operationId); } return(Guid.Empty); }