telemetry

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RingCapacity = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionInvoker

type ActionInvoker interface {
	ExecuteDecoded(ctx context.Context, decodeFn func(any) error) (any, error)
}

type EventSlot

type EventSlot struct {
	Seq        uint64
	Timestamp  int64
	Duration   int64
	CostMicros int64
	Status     uint16

	NodeID [16]byte
	// contains filtered or unexported fields
}

type HotPathExecutor

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

func NewHotPathExecutor

func NewHotPathExecutor(ring *LockFreeRingBuffer) *HotPathExecutor

func (*HotPathExecutor) ExecuteNode

func (e *HotPathExecutor) ExecuteNode(
	ctx context.Context,
	nodeID [16]byte,
	invoker ActionInvoker,
	payloadInput []byte,
) (out any, err error)

type LockFreeRingBuffer

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

func NewLockFreeRingBuffer

func NewLockFreeRingBuffer() *LockFreeRingBuffer

func (*LockFreeRingBuffer) Pop

func (rb *LockFreeRingBuffer) Pop(dst *EventSlot) bool

func (*LockFreeRingBuffer) Push

func (rb *LockFreeRingBuffer) Push(nodeID [16]byte, duration, cost int64, status uint16) bool

Jump to

Keyboard shortcuts

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