Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataDogClient ¶
func NewDataDogClient(uri, name string)
Types ¶
type Client ¶
type Client interface { StartSpanFromContext(context.Context, string) (opentracing.Span, context.Context) StartSpan(string, ...opentracing.StartSpanOption) opentracing.Span }
Client implements a tracing client
func NewOpenTracingClient ¶
NewOpenTracingClient creates a new open tracing client
type OpenTracingClient ¶
type OpenTracingClient struct { }
OpenTracingClient is an implementation of an open tracing client
func (*OpenTracingClient) StartSpan ¶
func (otc *OpenTracingClient) StartSpan(operation string, opts ...opentracing.StartSpanOption) opentracing.Span
StartSpan creates a new root span
func (*OpenTracingClient) StartSpanFromContext ¶
func (otc *OpenTracingClient) StartSpanFromContext(ctx context.Context, operation string) (opentracing.Span, context.Context)
StartSpanFromContext creates a new span from the given context
type SpanDetails ¶
func GetDataDogSpanDetails ¶
func GetDataDogSpanDetails(ctx opentracing.SpanContext) *SpanDetails
func GetZipkinSpanDetails ¶
func GetZipkinSpanDetails(ctx opentracing.SpanContext) *SpanDetails
type SpanDetailsFunc ¶
type SpanDetailsFunc func(ctx opentracing.SpanContext) *SpanDetails
Click to show internal directories.
Click to hide internal directories.