telemetry

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrCreateMachineID

func LoadOrCreateMachineID() string

LoadOrCreateMachineID attempts to derive a stable, anonymized machine ID by trying in order: Docker daemon ID, /etc/machine-id, then a persisted random UUID. Prefixes (dkr_, sys_, gen_) indicate origin, matching the Python implementation in localstack-core so IDs can be correlated across tools.

Types

type Client

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

func New

func New(endpoint string, disabled bool) *Client

func (*Client) Close

func (c *Client) Close()

Close stops accepting new events, drains the event buffer, and blocks until all pending HTTP requests have completed. Call it before process exit to avoid dropping telemetry events.

func (*Client) Emit

func (c *Client) Emit(ctx context.Context, name string, payload map[string]any)

Jump to

Keyboard shortcuts

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