Help us shape the future of Go! Take the 2026 Go Developer Survey

telemetry

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint added in v1.9.1

func Endpoint() string

Types

type Metrics added in v1.4.0

type Metrics struct {
	Invocations ometric.Int64Counter

	InputBytes ometric.Int64Histogram

	Duration ometric.Float64Histogram

	Errors ometric.Int64Counter

	JSONNodes ometric.Int64Histogram

	DiffChanges ometric.Int64Counter

	WebUploads ometric.Int64Counter
}

type Telemetry

type Telemetry struct {
	Umami *UmamiClient
	M     Metrics
	// contains filtered or unexported fields
}

func Init

func Init(cfg config.Config, serviceName, version string) *Telemetry

func New added in v1.9.1

func New() *Telemetry

func (*Telemetry) Close

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

func (*Telemetry) Disable

func (t *Telemetry) Disable()

func (*Telemetry) Meter

func (t *Telemetry) Meter() ometric.Meter

func (*Telemetry) Start added in v1.9.1

func (t *Telemetry) Start(cfg config.Config, serviceName, version string)

func (*Telemetry) Tracer

func (t *Telemetry) Tracer() otrace.Tracer

func (*Telemetry) TrackEvent

func (t *Telemetry) TrackEvent(event, pageURL string, props map[string]string)

type UmamiClient

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

func NewUmami

func NewUmami(endpoint, websiteID, hostname string) *UmamiClient

func (*UmamiClient) Track

func (u *UmamiClient) Track(event, pageURL string, props map[string]string)

Jump to

Keyboard shortcuts

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