Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerTracer ¶
NewLoggerTracer returns a new basictracer with the given processName and Log function.
Types ¶
type LoggerRecorder ¶
type LoggerRecorder struct { Log func(keyvals ...interface{}) error // contains filtered or unexported fields }
LoggerRecorder implements the basictracer.Recorder interface.
func NewLoggerRecorder ¶
func NewLoggerRecorder(processName string, Log func(keyvals ...interface{}) error) *LoggerRecorder
NewLoggerRecorder returns a LoggerRecorder for the given `processName`.
func (*LoggerRecorder) ProcessName ¶
func (t *LoggerRecorder) ProcessName() string
ProcessName returns the process name.
func (*LoggerRecorder) RecordSpan ¶
func (t *LoggerRecorder) RecordSpan(span basictracer.RawSpan)
RecordSpan complies with the basictracer.Recorder interface.
func (*LoggerRecorder) SetTag ¶
func (t *LoggerRecorder) SetTag(key string, val interface{}) *LoggerRecorder
SetTag sets a tag.
Click to show internal directories.
Click to hide internal directories.