trace

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NodeIdCtxKey = "node-id"
View Source
const RequestId = "request-id"
View Source
const RequestTraceName = "X-ORBS-NAME"
View Source
const RequestTraceRequestId = "X-ORBS-ID"
View Source
const RequestTraceTime = "X-ORBS-CREATED"

Variables

This section is empty.

Functions

func ContextWithNodeId added in v1.3.0

func ContextWithNodeId(ctx context.Context, nodeId string) context.Context

func LogFieldFrom

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

func NewContext

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

func NewFromRequest added in v1.2.1

func NewFromRequest(ctx context.Context, request *http.Request) 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

func (*Context) WriteTraceToRequest added in v1.2.1

func (c *Context) WriteTraceToRequest(request *http.Request)

Jump to

Keyboard shortcuts

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