oc

package
v0.0.0-...-a52efcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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.

func Setup

func Setup(serviceName string) io.Closer

Setup OpenCensus

func ZPages

func ZPages(g run.Group, logger log.Logger)

ZPages handling setup

Types

type BalancerType

type BalancerType string

BalancerType used in Retry logic

const (
	Random     BalancerType = "random"
	RoundRobin BalancerType = "round robin"
)

BalancerTypes

Jump to

Keyboard shortcuts

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