tracing

package
v0.0.0-...-6b3764c Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tracing provides helpers for dealing with Open Tracing and Distributed Tracing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JaegerConfig

type JaegerConfig struct {
	LocalAgentHostPort string
	SamplerType        string
	SamplerValue       float64
	SamplerServerURL   string
}

JaegerConfig encapsulates jaeger's configuration.

type Tracer

type Tracer struct {
	ServiceName  string
	Provider     string
	Logger       logrus.FieldLogger
	JaegerConfig *JaegerConfig
	// contains filtered or unexported fields
}

Tracer encapsulates tracing abilities.

func (*Tracer) Close

func (t *Tracer) Close()

Close closes the tracer.

func (*Tracer) IsLoaded

func (t *Tracer) IsLoaded() bool

IsLoaded returns true if the tracer has been loaded.

func (*Tracer) ServeHTTP

func (t *Tracer) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

func (*Tracer) Setup

func (t *Tracer) Setup() error

Setup sets up the tracer. Currently supports jaeger.

Jump to

Keyboard shortcuts

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