Skip to content

Commit

Permalink
http请求,添加响应头部信息
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jun 19, 2024
1 parent b5d92d1 commit 03a77e6
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 @@ -49,7 +49,7 @@ func (receiver ExceptionStack) IsNil() bool {

func (receiver *BaseTraceDetail) SetSql(connectionString string, dbName string, tableName string, sql string, rowsAffected int64) {
}
func (receiver *BaseTraceDetail) SetHttpRequest(url string, head map[string]any, requestBody string, responseBody string, statusCode int) {
func (receiver *BaseTraceDetail) SetHttpRequest(url string, reqHead map[string]any, rspHead map[string]string, requestBody string, responseBody string, statusCode int) {
}

// End 链路明细执行完后,统计用时
Expand Down
2 changes: 1 addition & 1 deletion trace/emptyManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ func (*emptyTraceDetail) End(err error) {}
func (*emptyTraceDetail) Ignore() {}
func (*emptyTraceDetail) SetSql(connectionString string, DbName string, tableName string, sql string, rowsAffected int64) {
}
func (*emptyTraceDetail) SetHttpRequest(url string, head map[string]any, requestBody string, responseBody string, statusCode int) {
func (*emptyTraceDetail) SetHttpRequest(url string, reqHead map[string]any, rspHead map[string]string, requestBody string, responseBody string, statusCode int) {
}
2 changes: 1 addition & 1 deletion trace/iTraceDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ type ITraceDetail interface {
// GetLevel 获取层级
GetLevel() int
// SetHttpRequest 设置Http请求出入参
SetHttpRequest(url string, head map[string]any, requestBody string, responseBody string, statusCode int)
SetHttpRequest(url string, reqHead map[string]any, rspHead map[string]string, requestBody string, responseBody string, statusCode int)
}

0 comments on commit 03a77e6

Please sign in to comment.