oc

package
v0.0.0-...-f691fa7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 12 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

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