Documentation ¶
Index ¶
- Variables
- func BrokerFilterName(args BrokerFilterNameArgs) string
- func BrokerIngressName(args BrokerIngressNameArgs) string
- func SetupDynamicZipkinPublishing(logger *zap.SugaredLogger, configMapWatcher *configmap.InformedWatcher, ...) error
- func SetupStaticZipkinPublishing(serviceName string, cfg *tracingconfig.Config) error
- type BrokerFilterNameArgs
- type BrokerIngressNameArgs
Constants ¶
This section is empty.
Variables ¶
var ( // OnePercentSampling is a configuration that samples 1% of the requests. OnePercentSampling = &tracingconfig.Config{ Enable: true, Debug: false, SampleRate: 0.01, ZipkinEndpoint: "http://zipkin.istio-system.svc.cluster.local:9411/api/v2/spans", } )
Functions ¶
func BrokerFilterName ¶ added in v0.7.0
func BrokerFilterName(args BrokerFilterNameArgs) string
BrokerFilterName creates the service name for Broker Filters to use when writing Zipkin traces.
func BrokerIngressName ¶ added in v0.7.0
func BrokerIngressName(args BrokerIngressNameArgs) string
BrokerIngressName creates the service name for Broker Ingresses to use when writing Zipkin traces.
func SetupDynamicZipkinPublishing ¶
func SetupDynamicZipkinPublishing(logger *zap.SugaredLogger, configMapWatcher *configmap.InformedWatcher, serviceName string) error
SetupDynamicZipkinPublishing sets up Zipkin trace publishing for the process, by watching a ConfigMap for the configuration. Note that other pieces still need to generate the traces, this just ensures that if generated, they are collected appropriately. This is normally done by using tracing.HTTPSpanMiddleware as a middleware HTTP handler. The configuration will be dynamically updated when the ConfigMap is updated.
func SetupStaticZipkinPublishing ¶
func SetupStaticZipkinPublishing(serviceName string, cfg *tracingconfig.Config) error
SetupStaticZipkinPublishing sets up Zipkin trace publishing for the process. Note that other pieces still need to generate the traces, this just ensures that if generated, they are collected appropriately. This is normally done by using tracing.HTTPSpanMiddleware as a middleware HTTP handler. The configuration will not be dynamically updated.
Types ¶
type BrokerFilterNameArgs ¶ added in v0.7.0
BrokerFilterNameArgs are the arguments needed to generate the BrokerFilterName.
type BrokerIngressNameArgs ¶ added in v0.7.0
BrokerIngressNameArgs are the arguments needed to generate the BrokerIngressName.