Skip to content

Commit

Permalink
新增:调度中心使用的链路入口
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Dec 28, 2023
1 parent fc25b07 commit bce9e75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trace/emptyManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func (m *EmptyManager) EntryTask(taskName string) ITraceContext {
func (m *EmptyManager) EntryFSchedule(taskGroupName string, taskGroupId int64, taskId int64) ITraceContext {
return &emptyTraceContext{}
}
func (*EmptyManager) EntryTaskGroup(taskName string, taskGroupName string, taskGroupId int64, taskId int64) ITraceContext {
return &emptyTraceContext{}
}

func (m *EmptyManager) EntryWatchKey(key string) ITraceContext { return &emptyTraceContext{} }
func (m *EmptyManager) TraceMq(method string, server string, exchange string) ITraceDetail {
Expand Down
2 changes: 2 additions & 0 deletions trace/iManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type IManager interface {
TraceHttp(method string, url string) ITraceDetail
// EntryTask 创建本地任务入口
EntryTask(taskName string) ITraceContext
// EntryTask 创建本地任务入口(调度中心专用)
EntryTaskGroup(taskName string, taskGroupName string, taskGroupId int64, taskId int64) ITraceContext
// EntryFSchedule 创建调度中心入口
EntryFSchedule(taskGroupName string, taskGroupId int64, taskId int64) ITraceContext
// EntryWatchKey 创建etcd入口
Expand Down

0 comments on commit bce9e75

Please sign in to comment.