tracing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunJaegerTracing

func RunJaegerTracing(ctx context.Context, serviceName, host string) (context.Context, opentracing.Tracer, io.Closer, error)

Types

type Jaeger

type Jaeger struct {
	opentracing.Tracer
	ServiceName string
	Metrics     *prometheus.Factory
	Closer      io.Closer
}

func InitJaeger

func InitJaeger(ctx context.Context, service, host string) (context.Context, *Jaeger, error)

func NewJaeger

func NewJaeger(ctx context.Context, serviceName string) *Jaeger

func (*Jaeger) GracefulShutdown

func (j *Jaeger) GracefulShutdown(ctx context.Context)

func (*Jaeger) Start

func (j *Jaeger) Start(ctx context.Context, host string) (context.Context, error)

type TracedServeMux

type TracedServeMux struct {
	// contains filtered or unexported fields
}

TracedServeMux is a wrapper around http.ServeMux that instruments handlers for tracing.

func NewServeMux

func NewServeMux(tracer opentracing.Tracer) *TracedServeMux

NewServeMux creates a new TracedServeMux.

func (*TracedServeMux) Handle

func (tm *TracedServeMux) Handle(pattern string, handler http.Handler)

Handle implements http.ServeMux#Handle

func (*TracedServeMux) ServeHTTP

func (tm *TracedServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.ServeMux#ServeHTTP

Jump to

Keyboard shortcuts

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