zipkin

package module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter exports SpanData to the zipkin collector. It implements the SpanBatcher interface, so it needs to be used together with the WithBatcher option when setting up the exporter pipeline.

func NewExporter

func NewExporter(collectorURL string, serviceName string, os ...Option) (*Exporter, error)

NewExporter creates a new zipkin exporter.

func (*Exporter) ExportSpans

func (e *Exporter) ExportSpans(ctx context.Context, batch []*export.SpanData)

ExportSpans is a part of an implementation of the SpanBatcher interface.

type Option

type Option func(*Options)

Option defines a function that configures the exporter.

func WithClient

func WithClient(client *http.Client) Option

WithClient configures the exporter to use the passed HTTP client.

func WithLogger

func WithLogger(logger *log.Logger) Option

WithLogger configures the exporter to use the passed logger.

type Options

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

Options contains configuration for the exporter.

Jump to

Keyboard shortcuts

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