Documentation ¶
Index ¶
- func Duration(k string, d time.Duration) log.Field
- func LogError(ctx context.Context, err error, fields ...log.Field)
- func LogErrorS(s opentracing.Span, err error, fields ...log.Field)
- func LogEvent(ctx context.Context, ev string, msg string, fields ...log.Field)
- func LogEventS(s opentracing.Span, ev string, msg string, fields ...log.Field)
- func SetTag(ctx context.Context, k string, v interface{})
- func SetTagS(s opentracing.Span, k string, v interface{})
- func StartChildOf(ctx context.Context, tr opentracing.Tracer, op string, ...) opentracing.Span
- func StartFollowsFrom(ctx context.Context, tr opentracing.Tracer, op string, ...) opentracing.Span
- func StartSpan(tr opentracing.Tracer, op string, opts ...opentracing.StartSpanOption) opentracing.Span
- func Time(k string, t time.Time) log.Field
- func TypeName(k string, v interface{}) log.Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogError ¶
LogError logs an error to the span in ctx, if one is present. The span is also marked as an error.
func LogErrorS ¶
func LogErrorS(s opentracing.Span, err error, fields ...log.Field)
LogErrorS logs an error to span and marks it as an error, if it is not nil.
func SetTagS ¶
func SetTagS(s opentracing.Span, k string, v interface{})
SetTagS sets a tag on s, if it is not nil.
func StartChildOf ¶
func StartChildOf( ctx context.Context, tr opentracing.Tracer, op string, opts ...opentracing.StartSpanOption, ) opentracing.Span
StartChildOf starts a new span as a child of the span in ctx, if any.
func StartFollowsFrom ¶
func StartFollowsFrom( ctx context.Context, tr opentracing.Tracer, op string, opts ...opentracing.StartSpanOption, ) opentracing.Span
StartFollowsFrom starts a new span that follows from the span in ctx, if any.
func StartSpan ¶
func StartSpan( tr opentracing.Tracer, op string, opts ...opentracing.StartSpanOption, ) opentracing.Span
StartSpan starts a new span using tr, or a NoopTracer if tr is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.