trace

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const RequestId = "request-id"

Variables

This section is empty.

Functions

func LogFieldFrom

func LogFieldFrom(ctx context.Context) *log.Field

func NewContext

func NewContext(parent context.Context, name string) context.Context

func PropagateContext

func PropagateContext(parent context.Context, tracingContext *Context) context.Context

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) (e *Context, ok bool)

func (*Context) NestedFields

func (c *Context) NestedFields() []*log.Field

Jump to

Keyboard shortcuts

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