telemetrydb

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package telemetrydb owns append-only observability independently of the core database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrationStream

func MigrationStream() store.MigrationStream

func Path

func Path(globalPath string) string

Types

type Store

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

Store acknowledges telemetry only after its own WAL commits.

func Open

func Open(ctx context.Context, path string) (*Store, error)

func (*Store) Close

func (s *Store) Close(ctx context.Context) error

func (*Store) DB

func (s *Store) DB() *sql.DB

DB is reserved for the owning cross-file migration coordinator.

func (*Store) DeleteScope

func (s *Store) DeleteScope(ctx context.Context, kind, id string) (int64, error)

func (*Store) Status

func (s *Store) Status(ctx context.Context) (store.StreamStatus, error)

func (*Store) Sweep

func (s *Store) Sweep(ctx context.Context, cutoff time.Time) (int64, error)

func (*Store) Write

func (s *Store) Write(ctx context.Context, summaries []store.EventSummary, validate func(context.Context) error) error

func (*Store) WriteOutbox

func (s *Store) WriteOutbox(ctx context.Context, summaries []store.EventSummary) []error

func (*Store) WriteSuggestion

func (s *Store) WriteSuggestion(
	ctx context.Context,
	summary store.EventSummary,
	validate func(context.Context) error,
) error

Directories

Path Synopsis
Package schema embeds the telemetry schema and its independent migration history.
Package schema embeds the telemetry schema and its independent migration history.

Jump to

Keyboard shortcuts

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