Documentation
¶
Index ¶
- type Formatter
- func (o *Formatter) Format(spans []base.Span) (body []byte)
- func (o *Formatter) GenerateLog(item *base.Item) (log *jaeger.Log)
- func (o *Formatter) GenerateProcess(b *jaeger.Batch, c *conf.Config)
- func (o *Formatter) GenerateSpan(b *jaeger.Batch, item base.Span)
- func (o *Formatter) GenerateSpans(b *jaeger.Batch, spans []base.Span)
- func (o *Formatter) GenerateTag(key string, value any) (tag *jaeger.Tag)
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct{}
Formatter is a component that convert span as byte array.
func (*Formatter) GenerateLog ¶
GenerateLog generate base item as jaeger log.
func (*Formatter) GenerateProcess ¶
GenerateProcess generate process profiles of the span.
func (*Formatter) GenerateSpan ¶
GenerateSpan generate span of a trace.
func (*Formatter) GenerateSpans ¶
GenerateSpans generate span of a trace.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is a component that publish span to jaeger.
func (*Reporter) SetFormatter ¶
func (o *Reporter) SetFormatter(formatter base.ReporterFormatter)
SetFormatter set trace content formatter.
Click to show internal directories.
Click to hide internal directories.