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 ¶
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 *slog.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.
Click to show internal directories.
Click to hide internal directories.