telemetry

package
v0.10.0-preview2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Collector gathers anonymous usage data and sends it periodically.

func NewCollector

func NewCollector(db *pgxpool.Pool, cfg CollectorConfig) *Collector

NewCollector creates a new telemetry collector.

func (*Collector) Run

func (c *Collector) Run(ctx context.Context)

Run starts the telemetry collection loop. Returns immediately if disabled.

type CollectorConfig

type CollectorConfig struct {
	Enabled  bool
	Endpoint string
	Interval time.Duration
	Version  string
}

CollectorConfig holds configuration for the telemetry collector.

type Payload

type Payload struct {
	InstallID       string         `json:"install_id"`
	Version         string         `json:"version"`
	GoVersion       string         `json:"go_version"`
	OS              string         `json:"os"`
	Arch            string         `json:"arch"`
	DeploymentMode  string         `json:"deployment_mode"`
	UptimeSeconds   int64          `json:"uptime_seconds"`
	Timestamp       time.Time      `json:"timestamp"`
	AssetCount      int            `json:"asset_count"`
	UserCount       int            `json:"user_count"`
	LineageEdges    int            `json:"lineage_edges"`
	ConnectorCounts map[string]int `json:"connector_counts"`
}

Payload is the anonymous telemetry payload sent to the ingest endpoint.

Jump to

Keyboard shortcuts

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