예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 private void SyncStructureAfter(object s, SyncStructureAfterEventArgs e)
 {
 }