Versions in this module Expand all Collapse all v1 v1.1.4 Nov 26, 2020 v1.1.3 Nov 26, 2020 Changes in this version + const ContextKey + const Namespace + var DefaultViews = []*view.View + func BackendFactory(bf proxy.BackendFactory) proxy.BackendFactory + func HTTPRequestExecutor(clientFactory transport.HTTPClientFactory) transport.HTTPRequestExecutor + func IsBackendEnabled() bool + func IsPipeEnabled() bool + func IsRouterEnabled() bool + func Middleware(name string) proxy.Middleware + func NewHTTPClient(ctx context.Context) *http.Client + func ProxyFactory(pf proxy.Factory) proxy.FactoryFunc + func Register(ctx context.Context, srvCfg config.ServiceConfig, vs ...*view.View) error + func RegisterExporterFactories(ef ExporterFactory) + type Config struct + EnabledLayers *EnabledLayers + Exporters Exporters + ReportingPeriod int + SampleRate int + type DataDogConfig struct + DisableCountPerBuckets bool + GlobalTags map[string]interface{} + Namespace string + Service string + StatsAddr string + Tags []string + TraceAddr string + type EnabledLayers struct + Backend bool + Pipe bool + Router bool + type ExporterFactory func(context.Context, Config) (interface{}, error) + type Exporters struct + DataDog *DataDogConfig + InfluxDB *InfluxDBConfig + Jaeger *JaegerConfig + Logger *struct{} + Ocagent *OcagentConfig + Prometheus *PrometheusConfig + Stackdriver *StackdriverConfig + Xray *XrayConfig + Zipkin *ZipkinConfig + type InfluxDBConfig struct + Address string + BufferSize int + Database string + InstanceName string + Password string + PingEnabled bool + Timeout string + Username string + type JaegerConfig struct + Endpoint string + ServiceName string + type OcagentConfig struct + Address string + EnaableCompression bool + Headers map[string]string + Insecure bool + Reconnection string + ServiceName string + type PrometheusConfig struct + Namespace string + Port int + type StackdriverConfig struct + DefaultLabels map[string]string + MetricPrefix string + ProjectID string + type XrayConfig struct + AccessKey string + Region string + SecretKey string + UseEnv bool + Version string + type ZipkinConfig struct + CollectorURL string + IP string + Port int + ServiceName string