telemetry

package
v0.0.0-...-290c2ba Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientTracingEndpoint

func ClientTracingEndpoint(operationName string, attrs ...trace.Attribute) endpoint.Middleware

ClientTracingEndpoint 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 ServerTracingEndpoint

func ServerTracingEndpoint(operationName string, attrs ...trace.Attribute) endpoint.Middleware

ServerTracingEndpoint 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