etlmetrics

package
v0.0.13-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package itermetrics contains utils to debug and measure iterators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInterval

func WithInterval(d time.Duration) metricOptions

Types

type Iter

type Iter = etl.Iter

Iter alias of iter.Iter

func DebugCount

func DebugCount(it Iter, prefix string) Iter

DebugCount prints the number of elements fetched from the iterator.

type Metrics

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

func New

func New(opts ...metricOptions) *Metrics

func (*Metrics) Count

func (m *Metrics) Count(it Iter, name string) Iter

func (*Metrics) Done

func (m *Metrics) Done()

func (*Metrics) Start

func (m *Metrics) Start()

Jump to

Keyboard shortcuts

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