tracing

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateZipkinReporter

func CreateZipkinReporter(cfg *config.Config) (zipkinreporter.Reporter, error)

CreateZipkinReporter returns a zipkin reporter. If EndpointURL is not specified it returns a noop reporter

func HTTPSpanMiddleware

func HTTPSpanMiddleware(next http.Handler) http.Handler

HTTPSpanMiddleware is a http.Handler middleware to create spans for the HTTP endpoint

Types

type ConfigOption

type ConfigOption func(*config.Config)

ConfigOption is the interface for adding additional exporters and configuring opencensus tracing.

func WithZipkinExporter

func WithZipkinExporter(reporterFact ZipkinReporterFactory, endpoint *zipkinmodel.Endpoint) ConfigOption

type OpenCensusTracer

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

OpenCensusTracer is responsible for managing and updating configuration of OpenCensus tracing

func NewOpenCensusTracer

func NewOpenCensusTracer(configOptions ...ConfigOption) *OpenCensusTracer

func (*OpenCensusTracer) ApplyConfig

func (oct *OpenCensusTracer) ApplyConfig(cfg *config.Config) error

func (*OpenCensusTracer) Finish

func (oct *OpenCensusTracer) Finish() error

type ZipkinReporterFactory

type ZipkinReporterFactory func(*config.Config) (zipkinreporter.Reporter, error)

ZipkinReporterFactory is a factory function which creates a reporter given a config

Directories

Path Synopsis
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Revision controller depends.
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Revision controller depends.

Jump to

Keyboard shortcuts

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