adding libp2p tag to logScope (#465)
This commit is contained in:
parent
e1648d4404
commit
d1c689e5ab
|
@ -15,7 +15,7 @@ import peerinfo,
|
||||||
errors
|
errors
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "connmanager"
|
topics = "libp2p connmanager"
|
||||||
|
|
||||||
declareGauge(libp2p_peers, "total connected peers")
|
declareGauge(libp2p_peers, "total connected peers")
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import stream/connection,
|
||||||
protocols/protocol
|
protocols/protocol
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "multistream"
|
topics = "libp2p multistream"
|
||||||
|
|
||||||
const
|
const
|
||||||
MsgSize* = 64*1024
|
MsgSize* = 64*1024
|
||||||
|
|
|
@ -15,7 +15,7 @@ import ../../stream/connection,
|
||||||
../../vbuffer
|
../../vbuffer
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "mplexcoder"
|
topics = "libp2p mplexcoder"
|
||||||
|
|
||||||
type
|
type
|
||||||
MessageType* {.pure.} = enum
|
MessageType* {.pure.} = enum
|
||||||
|
|
|
@ -18,7 +18,7 @@ import ./coder,
|
||||||
export connection
|
export connection
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "mplexchannel"
|
topics = "libp2p mplexchannel"
|
||||||
|
|
||||||
## Channel half-closed states
|
## Channel half-closed states
|
||||||
##
|
##
|
||||||
|
|
|
@ -20,7 +20,7 @@ import ../muxer,
|
||||||
export muxer
|
export muxer
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "mplex"
|
topics = "libp2p mplex"
|
||||||
|
|
||||||
const MplexCodec* = "/mplex/6.7.0"
|
const MplexCodec* = "/mplex/6.7.0"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import ../protocols/protocol,
|
||||||
../errors
|
../errors
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "muxer"
|
topics = "libp2p muxer"
|
||||||
|
|
||||||
const
|
const
|
||||||
DefaultChanTimeout* = 5.minutes
|
DefaultChanTimeout* = 5.minutes
|
||||||
|
|
|
@ -19,7 +19,7 @@ import ../protobuf/minprotobuf,
|
||||||
../utility
|
../utility
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "identify"
|
topics = "libp2p identify"
|
||||||
|
|
||||||
const
|
const
|
||||||
IdentifyCodec* = "/ipfs/id/1.0.0"
|
IdentifyCodec* = "/ipfs/id/1.0.0"
|
||||||
|
|
|
@ -20,7 +20,7 @@ import ./pubsub,
|
||||||
../../utility
|
../../utility
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "floodsub"
|
topics = "libp2p floodsub"
|
||||||
|
|
||||||
const FloodSubCodec* = "/floodsub/1.0.0"
|
const FloodSubCodec* = "/floodsub/1.0.0"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import stew/results
|
||||||
export results
|
export results
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "gossipsub"
|
topics = "libp2p gossipsub"
|
||||||
|
|
||||||
const
|
const
|
||||||
GossipSubCodec* = "/meshsub/1.1.0"
|
GossipSubCodec* = "/meshsub/1.1.0"
|
||||||
|
|
|
@ -28,7 +28,7 @@ import ./pubsub,
|
||||||
../../utility
|
../../utility
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "gossipsub"
|
topics = "libp2p gossipsub"
|
||||||
|
|
||||||
const GossipSubCodec* = "/meshsub/1.0.0"
|
const GossipSubCodec* = "/meshsub/1.0.0"
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ export PubSubObserver
|
||||||
export protocol
|
export protocol
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "pubsub"
|
topics = "libp2p pubsub"
|
||||||
|
|
||||||
declareGauge(libp2p_pubsub_peers, "pubsub peer instances")
|
declareGauge(libp2p_pubsub_peers, "pubsub peer instances")
|
||||||
declareGauge(libp2p_pubsub_topics, "pubsub subscribed topics")
|
declareGauge(libp2p_pubsub_topics, "pubsub subscribed topics")
|
||||||
|
|
|
@ -20,7 +20,7 @@ import rpc/[messages, message, protobuf],
|
||||||
export peerid, connection
|
export peerid, connection
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "pubsubpeer"
|
topics = "libp2p pubsubpeer"
|
||||||
|
|
||||||
when defined(libp2p_expensive_metrics):
|
when defined(libp2p_expensive_metrics):
|
||||||
declareCounter(libp2p_pubsub_sent_messages, "number of messages sent", labels = ["id", "topic"])
|
declareCounter(libp2p_pubsub_sent_messages, "number of messages sent", labels = ["id", "topic"])
|
||||||
|
|
|
@ -25,7 +25,7 @@ when defined(libp2p_dump):
|
||||||
import ../../debugutils
|
import ../../debugutils
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "noise"
|
topics = "libp2p noise"
|
||||||
|
|
||||||
const
|
const
|
||||||
# https://godoc.org/github.com/libp2p/go-libp2p-noise#pkg-constants
|
# https://godoc.org/github.com/libp2p/go-libp2p-noise#pkg-constants
|
||||||
|
|
|
@ -20,7 +20,7 @@ import secure,
|
||||||
export hmac, sha2, sha, hash, rijndael, bcmode
|
export hmac, sha2, sha, hash, rijndael, bcmode
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "secio"
|
topics = "libp2p secio"
|
||||||
|
|
||||||
const
|
const
|
||||||
SecioCodec* = "/secio/1.0.0"
|
SecioCodec* = "/secio/1.0.0"
|
||||||
|
|
|
@ -19,7 +19,7 @@ import ../protocol,
|
||||||
export protocol
|
export protocol
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "secure"
|
topics = "libp2p secure"
|
||||||
|
|
||||||
const
|
const
|
||||||
SecureConnTrackerName* = "SecureConn"
|
SecureConnTrackerName* = "SecureConn"
|
||||||
|
|
|
@ -19,7 +19,7 @@ when chronicles.enabledLogLevel == LogLevel.TRACE:
|
||||||
export connection
|
export connection
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "bufferstream"
|
topics = "libp2p bufferstream"
|
||||||
|
|
||||||
const
|
const
|
||||||
BufferStreamTrackerName* = "BufferStream"
|
BufferStreamTrackerName* = "BufferStream"
|
||||||
|
|
|
@ -12,7 +12,7 @@ import chronos, chronicles
|
||||||
import connection
|
import connection
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "chronosstream"
|
topics = "libp2p chronosstream"
|
||||||
|
|
||||||
const
|
const
|
||||||
DefaultChronosStreamTimeout = 10.minutes
|
DefaultChronosStreamTimeout = 10.minutes
|
||||||
|
|
|
@ -16,7 +16,7 @@ import lpstream,
|
||||||
export lpstream, peerinfo
|
export lpstream, peerinfo
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "connection"
|
topics = "libp2p connection"
|
||||||
|
|
||||||
const
|
const
|
||||||
ConnectionTrackerName* = "Connection"
|
ConnectionTrackerName* = "Connection"
|
||||||
|
|
|
@ -21,7 +21,7 @@ declareGauge(libp2p_open_streams,
|
||||||
export oids
|
export oids
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "lpstream"
|
topics = "libp2p lpstream"
|
||||||
|
|
||||||
const
|
const
|
||||||
LPStreamTrackerName* = "LPStream"
|
LPStreamTrackerName* = "LPStream"
|
||||||
|
|
|
@ -33,7 +33,7 @@ import stream/connection,
|
||||||
export connmanager
|
export connmanager
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "switch"
|
topics = "libp2p switch"
|
||||||
|
|
||||||
#TODO: General note - use a finite state machine to manage the different
|
#TODO: General note - use a finite state machine to manage the different
|
||||||
# steps of connections establishing and upgrading. This makes everything
|
# steps of connections establishing and upgrading. This makes everything
|
||||||
|
|
|
@ -18,7 +18,7 @@ import transport,
|
||||||
../stream/chronosstream
|
../stream/chronosstream
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "tcptransport"
|
topics = "libp2p tcptransport"
|
||||||
|
|
||||||
export transport
|
export transport
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@ import ../stream/connection,
|
||||||
../multiaddress,
|
../multiaddress,
|
||||||
../multicodec
|
../multicodec
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topics = "libp2p transport"
|
||||||
|
|
||||||
type
|
type
|
||||||
TransportClosedError* = object of CatchableError
|
TransportClosedError* = object of CatchableError
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue