Documentation ¶
Index ¶
- func ClientSpan(operationName string, ctx context.Context) (context.Context, opentracing.Span)
- type TracingSpan
- func NewDatastoreSpan(ctx context.Context, name string, datastore string) (TracingSpan, context.Context)
- func NewExternalSpan(ctx context.Context, name string, url string) (TracingSpan, context.Context)
- func NewHTTPExternalSpan(ctx context.Context, name string, url string, hdr http.Header) (TracingSpan, context.Context)
- func NewInternalSpan(ctx context.Context, name string) (TracingSpan, 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
Types ¶
type TracingSpan ¶
type TracingSpan interface { End() Finish() SetTag(key string, value interface{}) SetQuery(query string) SetError(msg string) }
TracingSpan defines an interface for implementing a tracing span
func NewDatastoreSpan ¶
func NewDatastoreSpan(ctx context.Context, name string, datastore string) (TracingSpan, context.Context)
NewDatastoreSpan starts a span for tracing data store actions
func NewExternalSpan ¶
NewExternalSpan starts a span for tracing external actions
func NewHTTPExternalSpan ¶
func NewHTTPExternalSpan(ctx context.Context, name string, url string, hdr http.Header) (TracingSpan, context.Context)
NewHTTPExternalSpan starts a span for tracing external HTTP actions
func NewInternalSpan ¶
NewInternalSpan starts a span for tracing internal actions
Click to show internal directories.
Click to hide internal directories.