Skip to content

Commit

Permalink
调整:链路追踪增加高度中心的Data参数保存
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jan 10, 2024
1 parent 2f3fb17 commit aca7a32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion traceManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (*traceManager) EntryFSchedule(taskGroupName string, taskId int64, data map
TaskName: taskGroupName,
TaskGroupName: taskGroupName,
TaskId: taskId,
Data: data,
TaskData: collections.NewDictionaryFromMap(data),
},
}
trace.CurTraceContext.Set(context)
Expand Down
8 changes: 4 additions & 4 deletions trackContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ func (receiver ConsumerContext) IsNil() bool {
}

type TaskContext struct {
TaskName string // 任务名称
TaskGroupName string // 任务组ID
TaskId int64 // 任务ID
Data map[string]string // 任务数据
TaskName string // 任务名称
TaskGroupName string // 任务组ID
TaskId int64 // 任务ID
TaskData collections.Dictionary[string, string] // 任务数据
}

func (receiver TaskContext) IsNil() bool {
Expand Down

0 comments on commit aca7a32

Please sign in to comment.