zipkin

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNoopTracer added in v1.5.2

func CreateNoopTracer() *zipkingo.Tracer

CreateNoopTracer creates no-op tracer

func New

func New(serviceName string, spec *Spec, tags map[string]string) (*zipkingo.Tracer, io.Closer, error)

New creates zipkin tracer.

Types

type Spec

type Spec struct {
	Hostport   string  `yaml:"hostport" jsonschema:"omitempty"`
	ServerURL  string  `yaml:"serverURL" jsonschema:"required,format=url"`
	SampleRate float64 `yaml:"sampleRate" jsonschema:"required,minimum=0,maximum=1"`
	SameSpan   bool    `yaml:"sameSpan" jsonschema:"omitempty"`
	ID128Bit   bool    `yaml:"id128Bit" jsonschema:"omitempty"`
}

Spec describes Zipkin.

func (Spec) Validate

func (spec Spec) Validate() error

Validate validates Spec.

Jump to

Keyboard shortcuts

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