stats

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProducerStats

type ProducerStats struct {
	MetricsBatchesProduced uint64
	LogsBatchesProduced    uint64
	TracesBatchesProduced  uint64
	StreamProducersCreated uint64
	StreamProducersClosed  uint64
	RecordBuilderStats     RecordBuilderStats

	SchemaStatsEnabled bool
}

ProducerStats is a struct that contains stats about the OTLP Arrow Producer.

func NewProducerStats

func NewProducerStats() *ProducerStats

NewProducerStats creates a new ProducerStats struct.

func (*ProducerStats) GetAndReset

func (s *ProducerStats) GetAndReset() ProducerStats

GetAndReset returns the current stats and resets them to zero.

func (*ProducerStats) Reset

func (s *ProducerStats) Reset()

Reset sets all stats to zero.

func (*ProducerStats) Show

func (s *ProducerStats) Show(indent string)

Show prints the stats to the console.

type RecordBuilderStats

type RecordBuilderStats struct {
	SchemaUpdatesPerformed     uint64
	DictionaryIndexTypeChanged uint64
	DictionaryOverflowDetected uint64
}

func (*RecordBuilderStats) Reset

func (s *RecordBuilderStats) Reset()

Reset sets all stats to zero.

func (*RecordBuilderStats) Show

func (s *RecordBuilderStats) Show(indent string)

Show prints the RecordBuilder stats to the console.

Jump to

Keyboard shortcuts

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