mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-05-02 03:02:54 -04:00
add span tag (#2176)
This commit is contained in:
committed by
Raul Jordan
parent
60c254d818
commit
0bd4489bc3
@@ -315,6 +315,9 @@ func (s *Server) emit(msg Message, feed Feed) {
|
||||
"msgType": fmt.Sprintf("%T", msg.Data),
|
||||
"msgName": proto.MessageName(msg.Data),
|
||||
}).Debug("Emit p2p message to feed subscribers")
|
||||
if span := trace.FromContext(msg.Ctx); span != nil {
|
||||
span.AddAttributes(trace.Int64Attribute("feedSubscribers", int64(i)))
|
||||
}
|
||||
}
|
||||
|
||||
// Subscribe returns a subscription to a feed of msg's Type and adds the channels to the feed.
|
||||
|
||||
Reference in New Issue
Block a user