Skip to content

Commit

Permalink
修复:数据库名称无法获取的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Dec 25, 2023
1 parent 5ab903b commit 6854869
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion trace/baseTraceDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 链路明细执行完后,统计用时
Expand Down
2 changes: 1 addition & 1 deletion trace/emptyManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}
2 changes: 1 addition & 1 deletion trace/iTraceDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 是否忽略
Expand Down

0 comments on commit 6854869

Please sign in to comment.