Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricsReporter ¶ added in v1.9.0
type MetricsReporter struct {
// contains filtered or unexported fields
}
MetricsReporter is reporter with metrics integration.
func WrapWithMetrics ¶ added in v1.9.0
func WrapWithMetrics(reporter Reporter, mFactory metrics.Factory) *MetricsReporter
WrapWithMetrics wraps Reporter and creates metrics for its invocations.
func (*MetricsReporter) EmitBatch ¶ added in v1.9.0
func (r *MetricsReporter) EmitBatch(batch *jaeger.Batch) error
EmitBatch emits batch to collector.
func (*MetricsReporter) EmitZipkinBatch ¶ added in v1.9.0
func (r *MetricsReporter) EmitZipkinBatch(spans []*zipkincore.Span) error
EmitZipkinBatch emits batch to collector.
type MultiReporter ¶
type MultiReporter []Reporter
MultiReporter provides serial span emission to one or more reporters. If more than one expensive reporter are needed, one or more of them should be wrapped and hidden behind a channel.
func NewMultiReporter ¶
func NewMultiReporter(reps ...Reporter) MultiReporter
NewMultiReporter creates a MultiReporter from the variadic list of passed Reporters.
func (MultiReporter) EmitBatch ¶
func (mr MultiReporter) EmitBatch(batch *jaeger.Batch) error
EmitBatch calls each EmitBatch, returning the first error.
func (MultiReporter) EmitZipkinBatch ¶
func (mr MultiReporter) EmitZipkinBatch(spans []*zipkincore.Span) error
EmitZipkinBatch calls each EmitZipkinBatch, returning the first error.
type Options ¶ added in v1.9.0
type Options struct {
ReporterType Type
}
Options holds generic reporter configuration.