Skip to content

Commit

Permalink
新增:etcd的链路追踪入口
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Oct 19, 2023
1 parent d0683a1 commit ef627d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ func (receiver *client) Watch(ctx context.Context, key string, watchFunc func(ev
Type: event.Type.String(),
Kv: newValue(event.Kv, &response.Header),
}
entryWatchKey := receiver.traceManager.EntryWatchKey(key)
watchFunc(watchEvent)
entryWatchKey.End()
}
}
flog.Info("退出了")
Expand All @@ -178,7 +180,9 @@ func (receiver *client) WatchPrefixKey(ctx context.Context, prefixKey string, wa
Type: event.Type.String(),
Kv: newValue(event.Kv, &response.Header),
}
entryWatchKey := receiver.traceManager.EntryWatchKey(prefixKey)
watchFunc(watchEvent)
entryWatchKey.End()
}
}
flog.Info("退出了")
Expand Down

0 comments on commit ef627d5

Please sign in to comment.