opentracing

package
v0.0.0-...-b1f09d4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

	TracerTypeJaeger = "jaeger"

	TracerTypeAppdash = "appdash"
)

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     string
}

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
}

Jump to

Keyboard shortcuts

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