messagetracer

package
v0.0.0-...-76c1feb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

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`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL