telemetry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package telemetry provides basic telemetry facilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

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

Flag represents a Kong flag with three states: true, false, and undecided (nil).

func (*Flag) UnmarshalText

func (s *Flag) UnmarshalText(text []byte) error

UnmarshalText is used by Kong to parse a flag value.

type NewReporterOpts

type NewReporterOpts struct {
	URL            string
	F              *Flag
	DNT            string
	ExecName       string
	P              *state.Provider
	ConnMetrics    *connmetrics.ConnMetrics
	L              *zap.Logger
	UndecidedDelay time.Duration
	ReportInterval time.Duration
	ReportTimeout  time.Duration
}

NewReporterOpts represents reporter options.

type Reporter

type Reporter struct {
	*NewReporterOpts
	// contains filtered or unexported fields
}

Reporter sends telemetry reports if telemetry is enabled.

func NewReporter

func NewReporter(opts *NewReporterOpts) (*Reporter, error)

NewReporter creates a new reporter.

func (*Reporter) Run

func (r *Reporter) Run(ctx context.Context)

Run runs reporter until context is canceled.

Jump to

Keyboard shortcuts

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