Documentation
¶
Overview ¶
Package flow processes gotocol context information to collect and export request flows across the system
Index ¶
- func AnnotateReceive(msg gotocol.Message, name string, received time.Time)
- func AnnotateSend(msg gotocol.Message, name string)
- func End(msg gotocol.Message, resphist, servhist, rthist *generic.Histogram)
- func Flush(t gotocol.TraceContextType, trace []*spannotype)
- func Instrument(msg gotocol.Message, name string, hist *generic.Histogram)
- func Shutdown()
- func WriteZip(zip zipkinspan)
- type ByCtx
- type KafkaCollector
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateReceive ¶
AnnotateReceive service activity when receiving a message
func AnnotateSend ¶
AnnotateSend service sends on a flow
func Flush ¶
func Flush(t gotocol.TraceContextType, trace []*spannotype)
Flush the spans for a request in zipkin format
func Instrument ¶
Instrument common code for requests
Types ¶
type KafkaCollector ¶
type KafkaCollector struct {
// contains filtered or unexported fields
}
KafkaCollector implements Collector by publishing spans to a Kafka broker.
func NewKafkaCollector ¶
func NewKafkaCollector(addrs []string) (*KafkaCollector, error)
NewKafkaCollector returns a new Kafka-backed Collector. addrs should be a slice of TCP endpoints of the form "host:port".
func (*KafkaCollector) Collect ¶
func (c *KafkaCollector) Collect(s []byte)
Collect implements Collector.
Click to show internal directories.
Click to hide internal directories.