reader

package
v0.0.0-...-30f5ca6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReaderObserver

func NewReaderObserver(readers ...Reader) observer.Observer

NewReaderObserver returns an implementation that computes the necessary state needed by a reader to process events in memory. Practically, this means tracking live metric handles and scope attribute sets.

Types

type Event

type Event struct {
	Type        EventType
	Time        time.Time
	Sequence    core.EventID
	SpanContext core.SpanContext
	Tags        tag.Map
	Attributes  tag.Map
	Stats       []Measurement

	Parent           core.SpanContext
	ParentAttributes tag.Map

	Duration time.Duration
	Name     string
	Message  string
}

type EventType

type EventType int
const (
	INVALID EventType = iota
	START_SPAN
	FINISH_SPAN
	LOG_EVENT
	LOGF_EVENT
	MODIFY_ATTR
	RECORD_STATS
)

type Measurement

type Measurement struct {
	Measure core.Measure
	Value   float64
	Tags    tag.Map
}

type Reader

type Reader interface {
	Read(Event)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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