Documentation ¶
Index ¶
- func ClientEndpoint(operationName string, attrs ...trace.Attribute) endpoint.Middleware
- func RetryEndpoint(operationName string, balancer BalancerType, max int, timeout time.Duration) endpoint.Middleware
- func ServerEndpoint(operationName string, attrs ...trace.Attribute) endpoint.Middleware
- func Setup(serviceName string) io.Closer
- type BalancerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientEndpoint ¶
func ClientEndpoint(operationName string, attrs ...trace.Attribute) endpoint.Middleware
ClientEndpoint adds our Endpoint Tracing middleware to the existing client side endpoint.
func RetryEndpoint ¶
func RetryEndpoint( operationName string, balancer BalancerType, max int, timeout time.Duration, ) endpoint.Middleware
RetryEndpoint wraps a Go kit lb.Retry endpoint with an annotated span.
func ServerEndpoint ¶
func ServerEndpoint(operationName string, attrs ...trace.Attribute) endpoint.Middleware
ServerEndpoint adds our Endpoint Tracing middleware to the existing server side endpoint.
Types ¶
type BalancerType ¶
type BalancerType string
BalancerType used in Retry logic
const ( Random BalancerType = "random" RoundRobin BalancerType = "round robin" )
BalancerTypes
Click to show internal directories.
Click to hide internal directories.