Documentation ¶
Overview ¶
Package tracing provides support for request tracing mechanisms.
Index ¶
- Constants
- func Errorf(span opentracing.Span, err error) error
- func GetChildSpan(span opentracing.Span, operationName string) opentracing.Span
- func GetParentSpan(ctx context.Context, operationName string) opentracing.Span
- func GrpcError(span opentracing.Span, err error) error
- func New(conf *config.Configuration) (opentracing.Tracer, error)
- func NewTestTracer(name string)
- func RegisterTracer(name string, f TracerFunc)
- func SetResponse(span opentracing.Span, response string)
- func SetSpanTags(span opentracing.Span, provider string, url string, method string)
- type TracerFunc
Constants ¶
View Source
const ( // ServiceName used to setup the tracer ServiceName string = "abraracourcix" )
Variables ¶
This section is empty.
Functions ¶
func GetChildSpan ¶
func GetChildSpan(span opentracing.Span, operationName string) opentracing.Span
func GetParentSpan ¶
func New ¶
func New(conf *config.Configuration) (opentracing.Tracer, error)
func NewTestTracer ¶
func NewTestTracer(name string)
func RegisterTracer ¶
func RegisterTracer(name string, f TracerFunc)
func SetResponse ¶
func SetResponse(span opentracing.Span, response string)
func SetSpanTags ¶
Types ¶
type TracerFunc ¶
type TracerFunc func(conf *config.Configuration) (opentracing.Tracer, error)
Click to show internal directories.
Click to hide internal directories.