spanstore

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTraceNotFound is returned by Reader's GetTrace if no data is found for given trace ID.
	ErrTraceNotFound = errors.New("trace not found")
)

Functions

This section is empty.

Types

type MultiplexWriter

type MultiplexWriter struct {
	// contains filtered or unexported fields
}

MultiplexWriter is a span Writer that tries to save spans into several underlying span Writers

func NewMultiplexWriter

func NewMultiplexWriter(spanWriters ...Writer) *MultiplexWriter

NewMultiplexWriter creates a MultiplexWriter

func (*MultiplexWriter) WriteSpan

func (c *MultiplexWriter) WriteSpan(span *model.Span) error

WriteSpan calls WriteSpan on each span writer. It will sum up failures, it is not transactional

type Reader

type Reader interface {
	GetTrace(traceID model.TraceID) (*model.Trace, error)
	GetServices() ([]string, error)
	GetOperations(service string) ([]string, error)
	FindTraces(query *TraceQueryParameters) ([]*model.Trace, error)
}

Reader finds and loads traces and other data from storage.

type TraceQueryParameters

type TraceQueryParameters struct {
	ServiceName   string
	OperationName string
	Tags          map[string]string
	StartTimeMin  time.Time
	StartTimeMax  time.Time
	DurationMin   time.Duration
	DurationMax   time.Duration
	NumTraces     int
}

TraceQueryParameters contains parameters of a trace query.

type Writer

type Writer interface {
	WriteSpan(span *model.Span) error
}

Writer writes spans to storage.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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