sampling

package
v0.0.0-...-437ec41 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSamplingServer

func NewSamplingServer(hostPort string, manager Manager, mFactory metrics.Factory) *http.Server

NewSamplingServer creates a new server that hosts an HTTP/JSON endpoint for clients to query for sampling strategies.

Types

type Manager

type Manager interface {
	GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)
}

Manager decides which sampling strategy a given service should be using.

func NewCollectorProxy

func NewCollectorProxy(svc string, channel *tchannel.Channel, mFactory metrics.Factory) Manager

NewCollectorProxy implements Manager by proxying the requests to collector.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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