telemetry

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const EventServerHeartbeat = "server_heartbeat"

Event names should use underscores because they will be ingested into Snowflake and then snakeCase becomes SNAKECASE which makes it a little hard to read.

View Source
const EventServerUserAction = "server_user_action"
View Source
const ServerHeartbeatTypeInitialized = "initialized"
View Source
const ServerHeartbeatTypePanic = "panic"
View Source
const ServerUserActionTypeCommandExecuted = "commandExecuted"
View Source
const ServerUserActionTypeFileAnalyzed = "fileAnalyzed"

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Event      string         `json:"event"`
	Source     string         `json:"source"`
	Timestamp  int64          `json:"event_timestamp"`
	Properties map[string]any `json:"properties"`
}

type TelemetryClient

type TelemetryClient interface {
	Enqueue(event string, properties map[string]any)
	Publish(ctx context.Context) (int, error)
	UpdateTelemetrySetting(value string)
}

func NewClient

func NewClient() TelemetryClient

type TelemetryClientImpl

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

func (*TelemetryClientImpl) Enqueue

func (c *TelemetryClientImpl) Enqueue(event string, properties map[string]any)

func (*TelemetryClientImpl) Publish

func (c *TelemetryClientImpl) Publish(ctx context.Context) (int, error)

func (*TelemetryClientImpl) UpdateTelemetrySetting

func (c *TelemetryClientImpl) UpdateTelemetrySetting(value string)

type TelemetryPayload added in v0.17.0

type TelemetryPayload struct {
	Records []Record `json:"records"`
}

Jump to

Keyboard shortcuts

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