reporter

package
v0.0.0-...-132f1c2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiReporter

type MultiReporter []Reporter

MultiReporter用于trace包发送给多个collector server, 多个collector存储

func NewMultiReporter

func NewMultiReporter(reps ...Reporter) MultiReporter

NewMultiReporter方法用于创建一个MultiReporter实例,指定了多个Reporter,也就是collector clients

func (MultiReporter) EmitBatch

func (mr MultiReporter) EmitBatch(batch *jaeger.Batch) error

EmitBatch方法用于批量调用EmitBatch, 对于每个Reporter都有自己的实现

func (MultiReporter) EmitZipkinBatch

func (mr MultiReporter) EmitZipkinBatch(spans []*zipkincore.Span) error

EmitZipkinBatch方法用于批量调用EmitZipkinBatch, 对于每一个Reporter传输的实现,都可以使用自己的方式

type Reporter

type Reporter interface {
	EmitZipkinBatch(spans []*zipkincore.Span) (err error)
	EmitBatch(batch *jaeger.Batch) (err error)
}

Reporter处理有processor接收的trace包,并通过processor的handler把trace包发送给collector server 至于EmitZipkinBatch与EmitBatch方法的区别,一个是Zipkin格式,一个是Jaeger自定义格式

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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