queuephase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrelationSummary

func CorrelationSummary(intent queueintent.Intent) string

Types

type EmitFunc

type EmitFunc func(context.Context, Phase)

type Emitter

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

Emitter turns durable state transitions into one bounded duration span per phase. It never invents traffic: a span exists only after the queue journal proves either a state transition or disappearance of a previously observed active intent.

func New

func New() *Emitter

func NewWithEmitter

func NewWithEmitter(emit EmitFunc) *Emitter

func (*Emitter) Observe

func (e *Emitter) Observe(ctx context.Context, snapshot queueintent.Snapshot, now time.Time)

type Phase

type Phase struct {
	Intent queueintent.Intent
	Start  time.Time
	End    time.Time
}

Jump to

Keyboard shortcuts

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