Documentation ¶
Index ¶
- func Extract(env *[]string) (opentracing.SpanContext, error)
- func Inject(sm opentracing.SpanContext, env *[]string) error
- func InjectFromContext(ctx context.Context, env *[]string) error
- func InjectToCmd(ctx context.Context, command *exec.Cmd) *exec.Cmd
- func InjectToCmdWithSpan(ctx context.Context, command *exec.Cmd) (opentracing.Span, context.Context)
- func SpanContext() opentracing.SpanContext
- func StartSpan(opts ...opentracing.StartSpanOption) opentracing.Span
- func StartSpanFromContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
Extracts the span context from an environment variables array
func Inject ¶
Injects the span context to the environment variables array
func InjectFromContext ¶
Injects a context to the environment variables array
func InjectToCmd ¶
Injects the span context to the command environment variables
func InjectToCmdWithSpan ¶
func InjectToCmdWithSpan(ctx context.Context, command *exec.Cmd) (opentracing.Span, context.Context)
Injects a new span context to the command environment variables
func SpanContext ¶
func SpanContext() opentracing.SpanContext
Gets the current span context from the environment variables, if available
func StartSpan ¶
func StartSpan(opts ...opentracing.StartSpanOption) opentracing.Span
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.