Documentation
¶
Overview ¶
Package telemetry is lic's business counters: validations by their code, activations, check-outs and usage reports by outcome. Labels are bounded: Keygen's validation codes, the refusal codes, ok, error.
Index ¶
- func Outcome(err error) string
- type Counters
- func (c Counters) Activation(ctx context.Context, err error)
- func (c Counters) Checkout(ctx context.Context, kind string, err error)
- func (c Counters) UsageReport(ctx context.Context, err error)
- func (c Counters) Validation(ctx context.Context, code string)
- func (c Counters) Webhook(ctx context.Context, outcome string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counters ¶
type Counters struct {
// contains filtered or unexported fields
}
Counters are the business counters; the zero value records nothing.
func (Counters) Activation ¶
Activation counts an activation that ended with err.
func (Counters) Checkout ¶
Checkout counts a check-out of kind (license, machine) that ended with err.
func (Counters) UsageReport ¶
UsageReport counts a usage report that ended with err.
func (Counters) Validation ¶
Validation counts a validation answered with code.
Click to show internal directories.
Click to hide internal directories.