Skip to content

Commit

Permalink
track topics in Reject/Duplicate/Deliver events
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jul 31, 2020
1 parent fa4d16e commit 5a3055d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (t *pubsubTracer) RejectMessage(msg *Message, reason string) {
MessageID: []byte(t.msgID(msg.Message)),
ReceivedFrom: []byte(msg.ReceivedFrom),
Reason: &reason,
Topics: msg.TopicIDs,
},
}

Expand Down Expand Up @@ -124,6 +125,7 @@ func (t *pubsubTracer) DuplicateMessage(msg *Message) {
DuplicateMessage: &pb.TraceEvent_DuplicateMessage{
MessageID: []byte(t.msgID(msg.Message)),
ReceivedFrom: []byte(msg.ReceivedFrom),
Topics: msg.TopicIDs,
},
}

Expand Down Expand Up @@ -152,6 +154,7 @@ func (t *pubsubTracer) DeliverMessage(msg *Message) {
Timestamp: &now,
DeliverMessage: &pb.TraceEvent_DeliverMessage{
MessageID: []byte(t.msgID(msg.Message)),
Topics: msg.TopicIDs,
},
}

Expand Down

0 comments on commit 5a3055d

Please sign in to comment.