Documentation
¶
Index ¶
- func WriteProjectionView(path string, view ProjectionView) error
- type Engine
- func (e *Engine) Close(ctx context.Context) error
- func (e *Engine) FlushDue(ctx context.Context) error
- func (e *Engine) Ingest(ctx context.Context, spans []traces.Span, receivedAt time.Time) error
- func (e *Engine) IngestWithSource(ctx context.Context, spans []traces.Span, receivedAt time.Time, ...) error
- func (e *Engine) LatestReconciliationReport() (reconciliation.Report, bool)
- type EngineConfig
- type FileSink
- type Metrics
- func (m *Metrics) AddDropped(count int)
- func (m *Metrics) AddIngested(count int)
- func (m *Metrics) Handler() http.Handler
- func (m *Metrics) RecordReconciliation(report reconciliation.Report)
- func (m *Metrics) RecordSnapshot(env snapshot.Envelope, buildDuration time.Duration, now time.Time)
- func (m *Metrics) SetWindowLag(now, end time.Time)
- type ProjectionView
- type Service
- type SnapshotSink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteProjectionView ¶ added in v0.2.0
func WriteProjectionView(path string, view ProjectionView) error
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(cfg EngineConfig) (*Engine, error)
func (*Engine) IngestWithSource ¶
func (*Engine) LatestReconciliationReport ¶ added in v0.2.0
func (e *Engine) LatestReconciliationReport() (reconciliation.Report, bool)
type EngineConfig ¶
type EngineConfig struct {
WindowSize time.Duration
MaxInMemorySpans int
LateSpanPolicy string
Sink SnapshotSink
Metrics *Metrics
Logger *slog.Logger
Now func() time.Time
SourceRef string
Sources []snapshot.SourceSummary
Overlays []overlay.File
ReconciliationConfig reconciliation.Config
ReconciliationReportPath string
RawWindowPath string
StableCorePath string
}
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) AddDropped ¶
func (*Metrics) AddIngested ¶
func (*Metrics) RecordReconciliation ¶ added in v0.2.0
func (m *Metrics) RecordReconciliation(report reconciliation.Report)
func (*Metrics) RecordSnapshot ¶
func (*Metrics) SetWindowLag ¶
type ProjectionView ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.