zipkin

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: 10 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) GenerateSpan

func (o *Formatter) GenerateSpan(c *conf.Config, span base.Span) (m *model.SpanModel)

type Reporter

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

Reporter is a component that publish span to zipkin.

func NewReporter

func NewReporter() *Reporter

NewReporter creates a new reporter for zipkin.

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 zipkin.

func (*Reporter) SetFormatter

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

SetFormatter set trace content formatter.

Directories

Path Synopsis
Package model contains the Zipkin V2 model which is used by the Zipkin Go tracer implementation.
Package model contains the Zipkin V2 model which is used by the Zipkin Go tracer implementation.

Jump to

Keyboard shortcuts

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