Documentation
¶
Overview ¶
Package telemetry builds opt-in usage events without workspace metadata.
Index ¶
Constants ¶
View Source
const ( Endpoint = "https://telemetry.datatf.io/v1/events" Notice = "https://github.com/536tech/datatf/blob/main/docs/telemetry.md" Timeout = 250 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
func Payload ¶
Payload returns the same allowlisted JSON for delivery and offline preview. Unknown metadata is replaced, never copied from a report or command line.
func SaveConsent ¶
SaveConsent replaces only DataTF's consent file. Invalid or missing settings default to off.
Types ¶
type Run ¶
type Run struct {
Version, OS, Arch, Command, Scope, Outcome, ErrorCode string
ResourceGroups []string
Duration time.Duration
}
Run contains only the inputs permitted in a usage event.
Click to show internal directories.
Click to hide internal directories.