Files

18 lines
478 B
Go

// Package ledger provides anonymous usage tracking for foundryctl commands.
package ledger
import (
"context"
"github.com/hanzoai/o11y-foundry/internal/domain"
)
// Ledger is the interface for tracking CLI usage events.
type Ledger interface {
// Track records a single foundryctl event with the given properties.
Track(ctx context.Context, event domain.Event, properties domain.Properties)
// Close flushes any pending events and releases resources.
Close() error
}