opentracing

package
v0.0.0-...-b5fa30d Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKey = "github.com/hb-go/echo-web/middleware/opentracing"

	TracerTypeJaeger  TracerType = "jaeger"
	TracerTypeAppdash            = "appdash"
	TracerTypeElastic            = "elastic"
)

Variables

This section is empty.

Functions

func Default

func Default(c echo.Context) opentracing.Span

func OpenTracing

func OpenTracing(comp string) echo.MiddlewareFunc

Types

type Configuration

type Configuration struct {
	Disabled bool
	Type     TracerType
}

func (Configuration) InitGlobalTracer

func (c Configuration) InitGlobalTracer(options ...Option) io.Closer

type Option

type Option func(c *Options)

func Address

func Address(address string) Option

func ServiceName

func ServiceName(serviceName string) Option

type Options

type Options struct {
	ServiceName string
	Address     string
}

type TracerType

type TracerType string

Jump to

Keyboard shortcuts

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