tracker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.7.0

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

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

func BoolSlice added in v0.7.0

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

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

func ErrorCode added in v1.0.996

func ErrorCode() codes.Code

func ErrorRecording added in v1.0.997

func ErrorRecording(ctx context.Context, err error)

func Float64 added in v0.7.0

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

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

func Float64Slice added in v0.7.0

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

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

func Int added in v0.7.0

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

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

func Int64 added in v0.7.0

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

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

func Int64Slice added in v0.7.0

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

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

func IntSlice added in v0.7.0

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

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

func RecordError added in v1.0.9

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

func SetAttribute added in v1.0.96

func SetAttribute(ctx context.Context, name string, value string)

func SpanFromContext added in v0.7.0

func SpanFromContext(ctx context.Context) trace.Span

func String added in v0.7.0

func String(k, v string) attribute.KeyValue

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

func StringSlice added in v0.7.0

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

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

func Stringer added in v0.7.0

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 WithStackTrace added in v1.0.996

func WithStackTrace(b bool) trace.SpanEndEventOption

Types

type ClientInterface added in v0.7.0

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

type Config added in v1.0.7

type Config struct {
	ServiceName string

	Host string

	TenantID string

	AccessToken string

	Tp *sdktrace.TracerProvider

	Mp *sdkmetric.MeterProvider
	// contains filtered or unexported fields
}

func Track

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

type Metrics added in v1.0.93

type Metrics struct{}

type Options added in v0.7.0

type Options func(*Config)

func WithConfigTag added in v0.7.0

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