zipkin

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(serviceName string, spec *Spec) (opentracing.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