Help us shape the future of Go! Take the 2026 Go Developer Survey

analytics

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTime

func FromTime(t time.Time) int64

Types

type AnalyticsSender

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

func NewSender

func NewSender(
	client *Client,
	arch string,
	cpuCores int,
	version string,
	si sysinfo.SysInfo,
	isContainer bool,
) *AnalyticsSender

func (*AnalyticsSender) Run

func (s *AnalyticsSender) Run(ctx context.Context)

type Client

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

func NewClient

func NewClient(
	tp trace.TracerProvider,
	client *http.Client,
	userAgent string,
	timeout time.Duration,
) *Client

func (*Client) Send

func (c *Client) Send(ctx context.Context, wreq *prometheus.WriteRequest) error

Jump to

Keyboard shortcuts

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