Documentation ¶
Index ¶
- Constants
- func ContextWithNodeId(ctx context.Context, nodeId string) context.Context
- func LogFieldFrom(ctx context.Context) *log.Field
- func NewContext(parent context.Context, name string) context.Context
- func NewFromRequest(ctx context.Context, request *http.Request) context.Context
- func PropagateContext(parent context.Context, tracingContext *Context) context.Context
- type Context
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 NewFromRequest ¶ added in v1.2.1
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) NestedFields ¶
func (*Context) WriteTraceToRequest ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.