Documentation ¶
Index ¶
- func GetParentSpanForHTTPRequest(tracer opentracing.Tracer, req *weaveworks_httpgrpc.HTTPRequest) (opentracing.SpanContext, error)
- func GetParentSpanForQueryRequest(tracer opentracing.Tracer, req *queryrange.QueryRequest) (opentracing.SpanContext, error)
- func GetParentSpanForRequest(tracer opentracing.Tracer, req Request) (opentracing.SpanContext, error)
- type HeadersCarrier
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentSpanForHTTPRequest ¶
func GetParentSpanForHTTPRequest(tracer opentracing.Tracer, req *weaveworks_httpgrpc.HTTPRequest) (opentracing.SpanContext, error)
func GetParentSpanForQueryRequest ¶
func GetParentSpanForQueryRequest(tracer opentracing.Tracer, req *queryrange.QueryRequest) (opentracing.SpanContext, error)
func GetParentSpanForRequest ¶
Types ¶
type HeadersCarrier ¶
type HeadersCarrier weaveworks_httpgrpc.HTTPRequest
Used to transfer trace information from/to HTTP request.
func (*HeadersCarrier) ForeachKey ¶
func (c *HeadersCarrier) ForeachKey(handler func(key, val string) error) error
func (*HeadersCarrier) Set ¶
func (c *HeadersCarrier) Set(key, val string)
type Request ¶
type Request interface { GetQueryRequest() *queryrange.QueryRequest GetHttpRequest() *weaveworks_httpgrpc.HTTPRequest }
Click to show internal directories.
Click to hide internal directories.