opencensus

package
v0.0.0-...-7a23ab9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// TODO: We could make it configurable in the future
	SETUPDURATION = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenCensusBase

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

func (*OpenCensusBase) Initialize

func (census *OpenCensusBase) Initialize(projectId string, reportPeriod int)

func (*OpenCensusBase) Record

func (census *OpenCensusBase) Record(arguments *protocol.MeasureArgument) *protocol.Response

func (*OpenCensusBase) ViewRegistration

func (census *OpenCensusBase) ViewRegistration(myView *(view.View)) error

Given the censusArgument, initialize the OpenCensus framework

type Slave

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

func (*Slave) Collect

func (slave *Slave) Collect(period time.Duration)

func (*Slave) Initialize

func (slave *Slave) Initialize(config *goserial.Config, parser parser.Parser) error

func (*Slave) Subscribe

func (slave *Slave) Subscribe(listener OpenCensusBase)

Jump to

Keyboard shortcuts

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