observability

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient added in v0.42.0

func NewHTTPClient() *http.Client

NewHTTPClient returns a HTTP client instrumented with OpenCensus traces and metrics.

func NewHTTPTransport added in v0.42.0

func NewHTTPTransport(base http.RoundTripper) http.RoundTripper

NewHTTPTransport returns a HTTP transport instrumented with OpenCensus traces and metrics.

func Start added in v0.30.1

func Start(options ...StartOption) io.Closer

Start initializes tracing.

Tracing is a global function due to how go.opencensus.io is written. The returned io.Closer needs to be called at the completion of the program.

Types

type StartOption added in v0.30.1

type StartOption func(*startOptions)

StartOption is an option for start.

func StartWithTraceExportCloser added in v0.30.1

func StartWithTraceExportCloser(traceExportCloser TraceExportCloser) StartOption

StartWithTraceExportCloser returns a new StartOption that adds the given TraceExportCloser.

func StartWithTraceViewExportCloser added in v0.30.1

func StartWithTraceViewExportCloser(traceViewExportCloser TraceViewExportCloser) StartOption

StartWithTraceViewExportCloser returns a new StartOption that adds the given TraceViewExportCloser.

func StartWithViewExportCloser added in v0.37.1

func StartWithViewExportCloser(viewExportCloser ViewExportCloser) StartOption

StartWithViewExportCloser returns a new StartOption that adds the given TraceExportCloser.

type TraceExportCloser added in v0.28.0

type TraceExportCloser interface {
	trace.Exporter
	io.Closer
}

TraceExportCloser describes the interface used to export OpenCensus traces and cleaning of resources.

type TraceViewExportCloser added in v0.28.0

type TraceViewExportCloser interface {
	ViewExportCloser
	TraceExportCloser
}

TraceViewExportCloser implements both OpenCensus view and trace exporting.

type ViewExportCloser added in v0.28.0

type ViewExportCloser interface {
	view.Exporter
	io.Closer
}

ViewExportCloser describes the interface used to export OpenCensus views and cleaning of resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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