httpgrpc

package
v1.6.2-0...-b66c343 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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

func GetParentSpanForRequest(tracer opentracing.Tracer, req Request) (opentracing.SpanContext, error)

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
}

Jump to

Keyboard shortcuts

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