trace

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = labels.Label{
		Tag: labels.TagVersion,
		Value: func() string {
			_, version := path.Split(ydb.Version)
			return version
		}(),
	}
)

Functions

This section is empty.

Types

type Scope

type Scope interface {
	Start(lbls ...labels.Label) Trace
	AddCall(tags map[string]string)
	AddError(tags map[string]string)
	RecordLatency(tags map[string]string, latency time.Duration)
	RecordValue(tags map[string]string, value float64)
}

type Trace

type Trace interface {
	Sync(e error, lbls ...labels.Label)
	SyncValue(v float64, lbls ...labels.Label)
	SyncWithValue(err error, v float64, lbls ...labels.Label)
}

func New

func New(s Scope) Trace

Jump to

Keyboard shortcuts

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