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 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
Click to show internal directories.
Click to hide internal directories.