telemetry

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Telemetry)

func WithDatadogExporter

func WithDatadogExporter(exporterOptions datadog.Options) Option

func WithLogger

func WithLogger(log hclog.Logger) Option

WithLogger sets the logger for use with the server.

func WithOpenCensusExporter

func WithOpenCensusExporter(exporterOptions []ocagent.ExporterOption) Option

func WithZpages

func WithZpages(addr string) Option

WithZpages enables a zpages server. Addr will default to 127.0.0.1:9999 unless otherwise specified.

type Telemetry

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

func NewTelemetry

func NewTelemetry(opts ...Option) (Telemetry, error)

NewTelemetry initializes the telemetry components.

func (*Telemetry) Run

func (t *Telemetry) Run(ctx context.Context) error

Run registers and starts the telemetry providers. It blocks until the provided context closes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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