spans

package
v3.85.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	IntType      = kv.IntType
	Int64Type    = kv.Int64Type
	StringType   = kv.StringType
	BoolType     = kv.BoolType
	StringsType  = kv.StringsType
	StringerType = kv.StringerType
)

Variables

This section is empty.

Functions

func WithTraces

func WithTraces(adapter Adapter) ydb.Option

Types

type Adapter

type Adapter interface {
	trace.Detailer

	SpanFromContext(ctx context.Context) Span
	Start(ctx context.Context, operationName string, attributes ...KeyValue) (context.Context, Span)
}

Adapter is interface of specific tracing system adapters

Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental

type Field

type Field = kv.KeyValue

type KeyValue

type KeyValue = kv.KeyValue

KeyValue is key-value attribute for attaching into span

type Span

type Span interface {
	TraceID() (_ string, valid bool)

	Link(link Span, attributes ...KeyValue)

	Log(msg string, attributes ...KeyValue)
	Warn(err error, attributes ...KeyValue)
	Error(err error, attributes ...KeyValue)

	End(attributes ...KeyValue)
}

Span is an interface of spans in specific tracing system

Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental

Jump to

Keyboard shortcuts

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