tracehlp

package
v0.27.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerTracer

func NewLoggerTracer(processName string, Log func(keyvals ...interface{}) error) opentracing.Tracer

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.

Jump to

Keyboard shortcuts

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