Documentation
¶
Index ¶
- func ClientSpan(operationName string, ctx context.Context) (context.Context, opentracing.Span)
- func CloneContextValues(parent context.Context) context.Context
- func GRPCTracingSpan(operationName string, ctx context.Context) context.Context
- func MergeContextValues(parent context.Context, main context.Context) context.Context
- type Span
- func NewDatastoreSpan(ctx context.Context, datastore, operation, collection string) (Span, context.Context)
- func NewExternalSpan(ctx context.Context, name string, url string) (Span, context.Context)
- func NewHTTPExternalSpan(ctx context.Context, name string, url string, hdr http.Header) (Span, context.Context)
- func NewInternalSpan(ctx context.Context, name string) (Span, context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientSpan ¶
ClientSpan starts a new client span linked to the existing spans if any are found
func CloneContextValues ¶
CloneContextValues clones a given context values and returns a new context obj which is not affected by Cancel, Deadline etc
func GRPCTracingSpan ¶
Types ¶
type Span ¶
type Span interface { End() Finish() SetTag(key string, value interface{}) SetQuery(query string) SetError(err error) error }
Span defines an interface for implementing a tracing span
func NewDatastoreSpan ¶
func NewDatastoreSpan(ctx context.Context, datastore, operation, collection string) (Span, context.Context)
NewDatastoreSpan starts a span for tracing data store actions
func NewExternalSpan ¶
NewExternalSpan starts a span for tracing external actions
Click to show internal directories.
Click to hide internal directories.