private void Aop_SyncStructureAfter(object sender, SyncStructureAfterEventArgs e) { if (e.Sql != null) { _log.Debug($"建表语句\r\n{e.Sql}\r\n"); } if (e.Exception != null) { _log.Error("建表语句执行出错。", e.Exception); } }
public void SyncStructureAfter([Object] SyncStructureAfterEventArgs eventData) { var context = _localSegmentContextAccessor.Context; if (context != null) { if (!string.IsNullOrEmpty(eventData.Sql)) { context.Span.AddTag(Common.Tags.DB_STATEMENT, eventData.Sql); } if (eventData?.Exception != null) { context.Span.ErrorOccurred(eventData.Exception, _tracingConfig); } _tracingContext.Release(context); } }
private void SyncStructureAfter(object s, SyncStructureAfterEventArgs e) { }