analytics

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 19 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(
	logger log.Logger,
	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