agentmetrics

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package agentmetrics owns Fenced operational metrics. Cardinality is kept bounded deliberately: tenant/task/workflow identifiers belong on traces and logs, never metric attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountingDrift

func AccountingDrift(ctx context.Context, ledger string, count int64)

func BudgetEvent

func BudgetEvent(ctx context.Context, event, dimension string)

func DBTransactionConflict

func DBTransactionConflict(ctx context.Context)

DBTransactionConflict increments the total number of database transactions that aborted on serialization or version conflict.

func DBTransactionRetry

func DBTransactionRetry(ctx context.Context)

DBTransactionRetry increments the total number of retryable database transactions that were retried by the store layer.

func LeaseExpiration

func LeaseExpiration(ctx context.Context)

LeaseExpiration increments the total number of runtime lease expirations observed by the recovery controller.

func ModelFirstTokenLatency

func ModelFirstTokenLatency(ctx context.Context, provider string, ms float64)

ModelFirstTokenLatency records streaming time-to-first-token in milliseconds, attributed by provider only (bounded cardinality). Recorded at the kernel invoker so it is captured regardless of any downstream delta consumer.

func OrchestratorReconcileDuration

func OrchestratorReconcileDuration(ctx context.Context, ms float64)

OrchestratorReconcileDuration records the wall-clock time of one workflow orchestrate round in milliseconds.

func QueueDepth

func QueueDepth(ctx context.Context, queue string, depth int64)

func RuntimeTakeover

func RuntimeTakeover(ctx context.Context)

RuntimeTakeover increments the total number of expired attempts that the recovery controller successfully recovered onto a new run.

func SchedulerClaims

func SchedulerClaims(ctx context.Context, count int)

func SchedulerDeferral

func SchedulerDeferral(ctx context.Context)

SchedulerDeferral increments the total number of scheduler deferrals caused by capacity exhaustion, lease contention, or other transient placement failures.

func SchedulerOutcome

func SchedulerOutcome(ctx context.Context, outcome string)

func SpawnOutcome

func SpawnOutcome(ctx context.Context, outcome string)

func WorkflowClaims

func WorkflowClaims(ctx context.Context, count int)

func WorkflowOutcome

func WorkflowOutcome(ctx context.Context, outcome string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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