process

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(env *[]string) (opentracing.SpanContext, error)

Extracts the span context from an environment variables array

func Inject

func Inject(sm opentracing.SpanContext, env *[]string) error

Injects the span context to the environment variables array

func InjectFromContext

func InjectFromContext(ctx context.Context, env *[]string) error

Injects a context to the environment variables array

func InjectToCmd

func InjectToCmd(ctx context.Context, command *exec.Cmd) *exec.Cmd

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

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL