Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentSpanForRequest ¶
func GetParentSpanForRequest(tracer opentracing.Tracer, req *httpgrpc.HTTPRequest) (opentracing.SpanContext, error)
func PrioritizeRecoverableErr ¶
PrioritizeRecoverableErr checks whether in the given slice of errors there is a recoverable error, if yes then it will return the first recoverable error, if not then it will return the first non-recoverable error, if there is no error at all then it will return nil.
Types ¶
type HttpgrpcHeadersCarrier ¶
type HttpgrpcHeadersCarrier httpgrpc.HTTPRequest
Used to transfer trace information from/to HTTP request.
func (*HttpgrpcHeadersCarrier) ForeachKey ¶
func (c *HttpgrpcHeadersCarrier) ForeachKey(handler func(key, val string) error) error
func (*HttpgrpcHeadersCarrier) Set ¶
func (c *HttpgrpcHeadersCarrier) Set(key, val string)
Click to show internal directories.
Click to hide internal directories.