telemetry

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 11 Imported by: 0

README

telemetry

A small library which pulls in telemetry primitives and opinionated about which ones to use.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogOptions

type LogOptions struct {
	Zap zap.Config
}

type MetricOptions

type MetricOptions struct {
	Stdout bool
}

type Options

type Options struct {
	Log    LogOptions
	Trace  TraceOptions
	Metric MetricOptions
}

type Telemetry

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

func New

func New(options Options) *Telemetry

func (*Telemetry) Logger

func (telemetry *Telemetry) Logger(name string, opts ...log.Option) *log.Logger

func (*Telemetry) Meter

func (telemetry *Telemetry) Meter(name string, opts ...metric.MeterOption) metric.Meter

func (*Telemetry) Shutdown

func (telemetry *Telemetry) Shutdown(ctx context.Context) error

func (*Telemetry) Start

func (telemetry *Telemetry) Start() error

func (*Telemetry) Tracer

func (telemetry *Telemetry) Tracer(name string, opts ...trace.TracerOption) trace.Tracer

type TraceOptions

type TraceOptions struct {
	Stdout bool
}

Jump to

Keyboard shortcuts

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