Skip to content

Commit

Permalink
调整:新增字段:TraceIdN
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jan 1, 2024
1 parent 9c8f1f2 commit 2e09762
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trackContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

type TraceContext struct {
TraceIdN string // 上下文ID
TraceId int64 // 上下文ID
AppId int64 // 应用ID
AppName string // 应用名称
Expand Down Expand Up @@ -178,3 +179,7 @@ func (receiver *TraceContext) Error(err error) {
func (receiver *TraceContext) GetAppInfo() (int64, string, int64, string, string) {
return receiver.TraceId, receiver.AppName, receiver.AppId, receiver.AppIp, receiver.ParentAppName
}

func (receiver *TraceContext) SetTraceIdN() {
receiver.TraceIdN = parse.ToString(receiver.TraceId)
}

0 comments on commit 2e09762

Please sign in to comment.