telemetry

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingConfig = errors.New("config cannot be nil")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ShutdownCtx context.Context
	// contains filtered or unexported fields
}

type DummyTelemetry

type DummyTelemetry struct {
}

func (*DummyTelemetry) Emit

func (d *DummyTelemetry) Emit(_ context.Context, _ map[string]string) error

type ITelemetry

type ITelemetry interface {
	Emit(ctx context.Context, data map[string]string) error
}

type Telemetry

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

func New

func New(cfg *Config) (*Telemetry, error)

func (*Telemetry) Emit

func (t *Telemetry) Emit(_ context.Context, data map[string]string) error

Jump to

Keyboard shortcuts

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