zipkin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package zipkin provides primitives for creating and configuring a Zipkin tracer for this binary.

Index

Constants

View Source
const (
	ReporterEndpoint = "zipkin-reporter-endpoint"
	LocalServicename = "zipkin-local-servicename"
	LocalHostport    = "zipkin-local-hostport"
	SinglehostSpans  = "zipkin-singlehost-spans"
	SampleRate       = "zipkin-sample-rate"
)

flags

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Servicename     string
	LocalHostport   string
	Address         string
	SampleRate      float64
	Tracer          *zipkin.Tracer
	Reporter        reporter.Reporter
	SingleHostSpans bool
	// contains filtered or unexported fields
}

Service implements run.GroupService

func (*Service) FlagSet

func (s *Service) FlagSet() *run.FlagSet

FlagSet implements run.Config

func (Service) GetTracer

func (s Service) GetTracer() *zipkin.Tracer

GetTracer returns the Zipkin Tracer

func (*Service) GracefulStop

func (s *Service) GracefulStop()

GracefulStop implements run.GroupService

func (*Service) GroupName

func (s *Service) GroupName(name string)

GroupName implements run.Namer so the Zipkin local endpoint service name defaults to the name of the run.Group if not set before calling Group's Run or RunConfig.

func (Service) Name

func (s Service) Name() string

Name implements run.Unit.

func (*Service) PreRun

func (s *Service) PreRun() error

PreRun implements run.PreRunner

func (*Service) Serve

func (s *Service) Serve() error

Serve implements run.GroupService

func (Service) Validate

func (s Service) Validate() error

Validate implements run.Config

type Tracer

type Tracer = zipkin.Tracer

Tracer is a convenience type alias for zipkin.Tracer so our packages only need to import this package for Tracing support.

Jump to

Keyboard shortcuts

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