diff --git a/trace/baseTraceDetail.go b/trace/baseTraceDetail.go index 60f8bd430..4493a906b 100644 --- a/trace/baseTraceDetail.go +++ b/trace/baseTraceDetail.go @@ -41,7 +41,7 @@ func (receiver ExceptionStack) IsNil() bool { return receiver.CallFile == "" && receiver.CallLine == 0 && receiver.CallFuncName == "" && receiver.IsException == false && receiver.ExceptionMessage == "" } -func (receiver *BaseTraceDetail) SetSql(DbName string, tableName string, sql string, rowsAffected int64) { +func (receiver *BaseTraceDetail) SetSql(connectionString string, dbName string, tableName string, sql string, rowsAffected int64) { } // End 链路明细执行完后,统计用时 diff --git a/trace/emptyManager.go b/trace/emptyManager.go index 4eb8f02ea..cf839d4de 100644 --- a/trace/emptyManager.go +++ b/trace/emptyManager.go @@ -69,5 +69,5 @@ func (receiver *emptyTraceDetail) ToString() string { return "" func (receiver *emptyTraceDetail) GetTraceDetail() *BaseTraceDetail { return &BaseTraceDetail{} } func (receiver *emptyTraceDetail) End(err error) {} func (receiver *emptyTraceDetail) Ignore() {} -func (receiver *emptyTraceDetail) SetSql(DbName string, tableName string, sql string, rowsAffected int64) { +func (receiver *emptyTraceDetail) SetSql(connectionString string, DbName string, tableName string, sql string, rowsAffected int64) { } diff --git a/trace/iTraceDetail.go b/trace/iTraceDetail.go index 934357f35..67f714746 100644 --- a/trace/iTraceDetail.go +++ b/trace/iTraceDetail.go @@ -4,7 +4,7 @@ type ITraceDetail interface { ToString() string GetTraceDetail() *BaseTraceDetail End(err error) - SetSql(DbName string, tableName string, sql string, rowsAffected int64) + SetSql(connectionString string, DbName string, tableName string, sql string, rowsAffected int64) // Ignore 忽略这次的链路追踪 Ignore() // IsIgnore 是否忽略