jaeger

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) Format

func (o *Formatter) Format(spans []base.Span) (body []byte)

Format log item as string.

func (*Formatter) GenerateLog

func (o *Formatter) GenerateLog(item *base.Item) (log *jaeger.Log)

GenerateLog generate base item as jaeger log.

func (*Formatter) GenerateProcess

func (o *Formatter) GenerateProcess(b *jaeger.Batch, c *conf.Config)

GenerateProcess generate process profiles of the span.

func (*Formatter) GenerateSpan

func (o *Formatter) GenerateSpan(b *jaeger.Batch, item base.Span)

GenerateSpan generate span of a trace.

func (*Formatter) GenerateSpans

func (o *Formatter) GenerateSpans(b *jaeger.Batch, spans []base.Span)

GenerateSpans generate span of a trace.

func (*Formatter) GenerateTag

func (o *Formatter) GenerateTag(key string, value any) (tag *jaeger.Tag)

GenerateTag generate key/value as jaeger tag.

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter is a component that publish span to jaeger.

func NewReporter

func NewReporter() *Reporter

NewReporter creates a new reporter for jaeger.

func (*Reporter) GetBucket

func (o *Reporter) GetBucket() *base.Bucket[base.Span]

GetBucket return tracer reporter bucket.

func (*Reporter) Publish

func (o *Reporter) Publish(spans ...base.Span)

Publish trace span to jaeger.

func (*Reporter) SetFormatter

func (o *Reporter) SetFormatter(formatter base.ReporterFormatter)

SetFormatter set trace content formatter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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