clientcfghttp

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigManager

type ConfigManager struct {
	SamplingStrategyStore strategystore.StrategyStore
	BaggageManager        baggage.BaggageRestrictionManager
}

ConfigManager implements ClientConfigManager.

func (*ConfigManager) GetBaggageRestrictions

func (c *ConfigManager) GetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error)

GetBaggageRestrictions implements ClientConfigManager.GetBaggageRestrictions.

func (*ConfigManager) GetSamplingStrategy

func (c *ConfigManager) GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)

GetSamplingStrategy implements ClientConfigManager.GetSamplingStrategy.

type HTTPHandler

type HTTPHandler struct {
	// contains filtered or unexported fields
}

HTTPHandler implements endpoints for used by Jaeger clients to retrieve client configuration, such as sampling and baggage restrictions.

func NewHTTPHandler

func NewHTTPHandler(params HTTPHandlerParams) *HTTPHandler

NewHTTPHandler creates new HTTPHandler.

func (*HTTPHandler) RegisterRoutes

func (h *HTTPHandler) RegisterRoutes(router *mux.Router)

RegisterRoutes registers configuration handlers with Gorilla Router.

type HTTPHandlerParams

type HTTPHandlerParams struct {
	ConfigManager  configmanager.ClientConfigManager // required
	MetricsFactory metrics.Factory                   // required

	// BasePath will be used as a prefix for the endpoints, e.g. "/api"
	BasePath string

	// LegacySamplingEndpoint enables returning sampling strategy from "/" endpoint
	// using Thrift 0.9.2 enum codes.
	LegacySamplingEndpoint bool
}

HTTPHandlerParams contains parameters that must be passed to NewHTTPHandler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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