observer

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: NCSA Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = &observerConfig{
		done: make(chan struct{}),
	}
)
View Source
var (
	Default = []string{}
)
View Source
var (
	Dummy otobserver.Observer = dummy{}
)
View Source
var (
	GPUMemInfo otobserver.Observer
)
View Source
var (
	Instruments = NoOp
)
View Source
var (
	MemInfo otobserver.Observer = memInfo{}
)
View Source
var (
	NoOp otobserver.Observer = noopObserver{}
)
View Source
var (
	PerfEvents otobserver.Observer = perfevents.NewObserver()
)

Functions

This section is empty.

Types

type SpanDummy

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

SpanDummy collects perfevent metrics

func NewSpanDummy

func NewSpanDummy(s opentracing.Span, opts opentracing.StartSpanOptions) (*SpanDummy, bool)

NewSpanDummy creates a new SpanDummy that can emit perfevent metrics

func (*SpanDummy) OnFinish

func (so *SpanDummy) OnFinish(options opentracing.FinishOptions)

func (*SpanDummy) OnSetOperationName

func (so *SpanDummy) OnSetOperationName(operationName string)

func (*SpanDummy) OnSetTag

func (so *SpanDummy) OnSetTag(key string, value interface{})

Jump to

Keyboard shortcuts

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