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
Dir string
F *Flag
DNT string
ExecName string
P *state.Provider
Metrics *middleware.Metrics
L *slog.Logger
UndecidedDelay time.Duration
ReportInterval time.Duration
}
NewReporterOpts represents reporter options.
type Reporter ¶
type Reporter struct {
*NewReporterOpts
// contains filtered or unexported fields
}
Reporter converts already collected data (such as metrics) to the report, sends it to the Beacon if telemetry reporting is enabled, and writes it to a local file in the state directory.
func NewReporter ¶
func NewReporter(opts *NewReporterOpts) (*Reporter, error)
NewReporter creates a new reporter.
Click to show internal directories.
Click to hide internal directories.