Versions in this module Expand all Collapse all v1 v1.0.0 Mar 18, 2020 Changes in this version + const AuthKey + const DefaultRPCPath + const OpencensusSpanClientKey + const OpencensusSpanRequestKey + const OpencensusSpanServerKey + const OpentracingSpanClientKey + const OpentracingSpanServerKey + var Codecs = map[protocol.SerializeType]codec.Codec + var ReqMetaDataKey = ContextKey("__req_metadata") + var ResMetaDataKey = ContextKey("__res_metadata") + func GetOpencensusSpanContextFromContext(ctx context.Context) (*trace.SpanContext, error) + func GetSpanContextFromContext(ctx context.Context) (opentracing.SpanContext, error) + func RegisterCodec(t protocol.SerializeType, c codec.Codec) + type Context struct + func NewContext(ctx context.Context) *Context + func WithLocalValue(ctx *Context, key, val interface{}) *Context + func WithValue(parent context.Context, key, val interface{}) *Context + func (c *Context) SetValue(key, val interface{}) + func (c *Context) String() string + func (c *Context) Value(key interface{}) interface{} + type ContextKey string