tracing

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ExternalConfigName = "tracing"

ExternalConfigName is the external config name of tracing.

Variables

This section is empty.

Functions

func CustomTracer

func CustomTracer(tracer opentracing.Tracer) nirvana.Configurer

CustomTracer returns a configurer to set custom tracer.

func DefaultTracer

func DefaultTracer(serviceName string, agentHostPort string) nirvana.Configurer

DefaultTracer returns a configurer to create default tracer by service and port.

func Disable

func Disable() nirvana.Configurer

Disable returns a configurer to disable tracing.

Types

type Option

type Option struct {
	// ServiceName is the trace service name
	ServiceName string
	// AgentHostPort instructs reporter to send spans to jaeger-agent at this address
	AgentHostPort string
}

Option contains basic configurations of tracing.

func (*Option) Configure

func (p *Option) Configure(cfg *nirvana.Config) error

Configure configures nirvana config via current options.

func (*Option) Name

func (p *Option) Name() string

Name returns plugin name.

Directories

Path Synopsis
clients

Jump to

Keyboard shortcuts

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