mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
18 lines
478 B
Go
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
|
|
}
|