tracker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(k string, v bool) attribute.KeyValue

Bool creates a attribute.KeyValue with a BOOL Value type.

func BoolSlice

func BoolSlice(k string, v []bool) attribute.KeyValue

BoolSlice creates a attribute.KeyValue with a BOOLSLICE Value type.

func Float64

func Float64(k string, v float64) attribute.KeyValue

Float64 creates a attribute.KeyValue with a FLOAT64 Value type.

func Float64Slice

func Float64Slice(k string, v []float64) attribute.KeyValue

Float64Slice creates a attribute.KeyValue with a FLOAT64SLICE Value type.

func Int

func Int(k string, v int) attribute.KeyValue

Int creates a attribute.KeyValue with an INT64 Value type.

func Int64

func Int64(k string, v int64) attribute.KeyValue

Int64 creates a attribute.KeyValue with an INT64 Value type.

func Int64Slice

func Int64Slice(k string, v []int64) attribute.KeyValue

Int64Slice creates a attribute.KeyValue with an INT64SLICE Value type.

func IntSlice

func IntSlice(k string, v []int) attribute.KeyValue

IntSlice creates a attribute.KeyValue with an INT64SLICE Value type.

func Meter

func Meter() mt.Meter

func RecordError

func RecordError(ctx context.Context, err error) trace.Span

func SpanFromContext

func SpanFromContext(ctx context.Context) trace.Span

func String

func String(k, v string) attribute.KeyValue

String creates a attribute.KeyValue with a STRING Value type.

func StringSlice

func StringSlice(k string, v []string) attribute.KeyValue

StringSlice creates a attribute.KeyValue with a STRINGSLICE Value type.

func Stringer

func Stringer(k string, v fmt.Stringer) attribute.KeyValue

Stringer creates a new key-value pair with a passed name and a string value generated by the passed Stringer interface.

func WithAttribute

func WithAttribute(attributes attribute.KeyValue) trace.SpanStartEventOption

Types

type ClientInterface

type ClientInterface interface {
	Init(ServiceName string) error
	CollectMetrics()
	// contains filtered or unexported methods
}

type Config

type Config struct {
	ServiceName string
	// contains filtered or unexported fields
}

func Track

func Track(opts ...Options) (*Config, error)

type Metrics

type Metrics struct{}

type Options

type Options func(*Config)

func WithConfigTag

func WithConfigTag(k string, v interface{}) Options

Jump to

Keyboard shortcuts

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