trace publish

This commit is contained in:
vyzo 2019-11-04 20:04:55 +02:00
parent 67275a6382
commit 89c7ed46e3
2 changed files with 7 additions and 0 deletions

View File

@ -446,6 +446,7 @@ func (p *PubSub) processLoop(ctx context.Context) {
p.handleIncomingRPC(rpc)
case msg := <-p.publish:
p.tracer.PublishMessage(msg)
p.pushMsg(msg)
case msg := <-p.sendMsg:

View File

@ -14,6 +14,12 @@ type pubsubTracer struct {
tracer EventTracer
}
func (t *pubsubTracer) PublishMessage(msg *Message) {
if t != nil {
// TODO
}
}
func (t *pubsubTracer) RejectMessage(msg *Message, reason string) {
if t != nil {
// TODO