public void BeforeCommandExecuterExecute([Object] CommandExecuterExecuteBeforeEventData eventData) { var context = _tracingContext.CreateLocalSegmentContext(eventData.Operation); context.Span.SpanLayer = Tracing.Segments.SpanLayer.DB; context.Span.Component = Common.Components.SMART_SQL; context.Span.AddTag(Common.Tags.DB_TYPE, "Sql"); }
public void BeforeCommandExecuterExecute([Object] CommandExecuterExecuteBeforeEventData eventData) { var context = CreateSmartSqlLocalSegmentContext(eventData.Operation); if (eventData.ExecutionContext.Request.RealSql != null) { context.Span.AddTag(Common.Tags.DB_STATEMENT, eventData.ExecutionContext.Request.RealSql); } }