Documentation ¶
Overview ¶
Package tracing complements the opentracing go package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpanContextFromBinary ¶
SpanContextFromBinary unmarshals the given byte array containing the SpanContext in binary format. Returns a new SpanContext instance using the global tracer.
func SpanContextToBinary ¶
SpanContextToBinary marshals the given SpanContext to a binary format using the global tracer. Returns either the in-memory bytes array or an error.
func StartSpanWithContext ¶
func StartSpanWithContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
StartSpanWithContext creates a new span and returns a context containing it. In contrast to opentracing.StartSpanFromContext(), this function does not take existing span from `ctx` as a ChildOfRef.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.