Versions in this module Expand all Collapse all v0 v0.100.0 Oct 23, 2021 Changes in this version + var DefaultViews = []*view.View + var InboundRequestLatency = stats.Float64("libp2p.io/dht/kad/inbound_request_latency", "Latency per RPC", ...) + var InboundRequestLatencyView = &view.View + var KeyInstanceID = tag.NewKey("instance_id") + var KeyMessageType = tag.NewKey("message_type") + var KeyPeerID = tag.NewKey("peer_id") + var OutboundRequestLatency = stats.Float64("libp2p.io/dht/kad/outbound_request_latency", "Latency per RPC", ...) + var OutboundRequestLatencyView = &view.View + var ReceivedBytes = stats.Int64("libp2p.io/dht/kad/received_bytes", "Total received bytes per RPC", ...) + var ReceivedBytesView = &view.View + var ReceivedMessageErrors = stats.Int64("libp2p.io/dht/kad/received_message_errors", ...) + var ReceivedMessageErrorsView = &view.View + var ReceivedMessages = stats.Int64("libp2p.io/dht/kad/received_messages", ...) + var ReceivedMessagesView = &view.View + var SentBytes = stats.Int64("libp2p.io/dht/kad/sent_bytes", "Total sent bytes per RPC", stats.UnitBytes) + var SentBytesView = &view.View + var SentMessageErrors = stats.Int64("libp2p.io/dht/kad/sent_message_errors", ...) + var SentMessageErrorsView = &view.View + var SentMessages = stats.Int64("libp2p.io/dht/kad/sent_messages", "Total number of messages sent per RPC", ...) + var SentMessagesView = &view.View + var SentRequestErrors = stats.Int64("libp2p.io/dht/kad/sent_request_errors", ...) + var SentRequestErrorsView = &view.View + var SentRequests = stats.Int64("libp2p.io/dht/kad/sent_requests", "Total number of requests sent per RPC", ...) + var SentRequestsView = &view.View + func UpsertMessageType(m *pb.Message) tag.Mutator