Documentation ¶
Index ¶
Constants ¶
View Source
const Proposal = "prop"
Proposal is a prefix for HashTrace()
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageTracer ¶
type MessageTracer interface { // Init configures trace client or returns nil. // Caller is expected to check for nil, e.g. `if t != nil {t.HashTrace(...)}` Init(cfg config.Local) MessageTracer // HashTrace submits a trace message to the statistics server. HashTrace(prefix string, data []byte) }
MessageTracer interface for configuring trace client and sending trace messages
func NewTracer ¶
func NewTracer(log logging.Logger) MessageTracer
NewTracer constructs a new MessageTracer if that has been compiled in with the build tag `msgtrace`
Click to show internal directories.
Click to hide internal directories.