batching

package
v0.0.0-...-250ee5b Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emitted

func Emitted(ctx context.Context, sourceType data.SourceType, batchItemCount int, elapsed time.Duration)

Emitted should be called when emitting a batch to record the batch emitted count, batch item emitted count, and time elapsed from when the batch was created.

func Error

func Error(ctx context.Context)

Error records an error when handling batch input.

func Init

func Init(meter api.Meter) error

Init initializes the batching metrics. This should only be called by the tattler constructor or tests.

func Success

func Success(ctx context.Context)

Success records successful handling of batch input so we can calculate error rate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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