Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPServer ¶
func NewHTTPServer(hostPort string, manager ClientConfigManager, mFactory metrics.Factory) *http.Server
NewHTTPServer创建一个http服务,用于本地host的微服务获取相关采样策略、Baggage信息携带字段等
Types ¶
type ClientConfigManager ¶
type ClientConfigManager interface { GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error) GetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error) }
ClientConfigManager interface两个用途: 1) 对于一个服务,它采用的采样策略是怎样的? 2) 对于一个服务,它只能rpc传输哪些数据?
func NewCollectorProxy ¶
func NewCollectorProxy(svc string, channel *tchannel.Channel, mFactory metrics.Factory) ClientConfigManager
NewCollectorProxy方法创建一个ClientConfigManager实例,通过channel获取service的client封装,方便后续的rpc client调用
Click to show internal directories.
Click to hide internal directories.