otel: go.opentelemetry.io/otel/exporters/trace/zipkin Index | Files

package zipkin

import "go.opentelemetry.io/otel/exporters/trace/zipkin"

Package zipkin contains an OpenTelemetry tracing exporter for Zipkin.

Index

Package Files

doc.go model.go zipkin.go

func InstallNewPipeline Uses

func InstallNewPipeline(collectorURL, serviceName string, opts ...Option) error

InstallNewPipeline instantiates a NewExportPipeline with the recommended configuration and registers it globally.

func NewExportPipeline Uses

func NewExportPipeline(collectorURL, serviceName string, opts ...Option) (*sdktrace.TracerProvider, error)

NewExportPipeline sets up a complete export pipeline with the recommended setup for trace provider

type Exporter Uses

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 NewRawExporter Uses

func NewRawExporter(collectorURL, serviceName string, opts ...Option) (*Exporter, error)

NewRawExporter creates a new Zipkin exporter.

func (*Exporter) ExportSpans Uses

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

ExportSpans exports SpanData to a Zipkin receiver.

func (*Exporter) Shutdown Uses

func (e *Exporter) Shutdown(ctx context.Context) error

Shutdown stops the exporter flushing any pending exports.

type Option Uses

type Option func(*options)

Option defines a function that configures the exporter.

func WithClient Uses

func WithClient(client *http.Client) Option

WithClient configures the exporter to use the passed HTTP client.

func WithLogger Uses

func WithLogger(logger *log.Logger) Option

WithLogger configures the exporter to use the passed logger.

func WithSDK Uses

func WithSDK(config *sdktrace.Config) Option

WithSDK sets the SDK config for the exporter pipeline.

Package zipkin imports 17 packages (graph) and is imported by 3 packages. Updated 2020-10-18. Refresh now. Tools for package owners.