telemetry

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 12 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

This section is empty.

Variables

View Source
var (
	NowProvider = time.Now().UnixMilli
)

Functions

func FieldTypeForValue

func FieldTypeForValue(value interface{}) int32

Types

type Aggregator

type Aggregator interface {
	Record(data interface{})
	GetData() *prefabProto.TelemetryEvent
	Clear()
	Lock()
	Unlock()
}

func NewContextAggregators

func NewContextAggregators(opts options.Options) []Aggregator

type ContextShapeAggregator

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

func NewContextShapeAggregator

func NewContextShapeAggregator() *ContextShapeAggregator

func (*ContextShapeAggregator) Clear

func (eca *ContextShapeAggregator) Clear()

func (*ContextShapeAggregator) GetData

func (*ContextShapeAggregator) Lock

func (eca *ContextShapeAggregator) Lock()

func (*ContextShapeAggregator) Record

func (eca *ContextShapeAggregator) Record(ctxSet interface{})

func (*ContextShapeAggregator) Unlock

func (eca *ContextShapeAggregator) Unlock()

type EvaluationSummaryAggregator

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

func NewEvaluationSummaryAggregator

func NewEvaluationSummaryAggregator() *EvaluationSummaryAggregator

func (*EvaluationSummaryAggregator) Clear

func (esa *EvaluationSummaryAggregator) Clear()

func (*EvaluationSummaryAggregator) GetData

func (*EvaluationSummaryAggregator) Lock

func (esa *EvaluationSummaryAggregator) Lock()

func (*EvaluationSummaryAggregator) Record

func (esa *EvaluationSummaryAggregator) Record(data interface{})

func (*EvaluationSummaryAggregator) Unlock

func (esa *EvaluationSummaryAggregator) Unlock()

type ExampleContextAggregator

type ExampleContextAggregator struct {
	Data map[string]*prefabProto.ExampleContext
	// contains filtered or unexported fields
}

func NewExampleContextAggregator

func NewExampleContextAggregator() *ExampleContextAggregator

func (*ExampleContextAggregator) Clear

func (eca *ExampleContextAggregator) Clear()

func (*ExampleContextAggregator) GetData

func (*ExampleContextAggregator) Lock

func (eca *ExampleContextAggregator) Lock()

func (*ExampleContextAggregator) Record

func (eca *ExampleContextAggregator) Record(ctxSet interface{})

func (*ExampleContextAggregator) Unlock

func (eca *ExampleContextAggregator) Unlock()

type Payload

type Payload = prefabProto.TelemetryEvents

type QueueItem

type QueueItem interface{}

type Submitter

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

func NewTelemetrySubmitter

func NewTelemetrySubmitter(options options.Options) *Submitter

func (*Submitter) RecordContext

func (ts *Submitter) RecordContext(data *contexts.ContextSet)

func (*Submitter) RecordEvaluation

func (ts *Submitter) RecordEvaluation(data internal.ConfigMatch)

func (*Submitter) SetupQueueConsumer

func (ts *Submitter) SetupQueueConsumer()

func (*Submitter) StartPeriodicSubmission

func (ts *Submitter) StartPeriodicSubmission(interval time.Duration)

func (*Submitter) Submit

func (ts *Submitter) Submit(waitOnQueueToDrain bool) error

Jump to

Keyboard shortcuts

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