Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-resilience

Resilience pipelines for Pudu: retry, circuit breaker, timeout, fallback, hedging, rate limiting, and chaos injection

0.1.0Apache-2.01

InstallClose

Events.pudu

Pudu48 lines1.6 KB

GitHub ↗
1/** @Constants.Events.Module — telemetry event names */2module PuduLangResilience.Constants.Events34/// Reported when a pipeline starts an execution.5export const PIPELINE_EXECUTING: Str = "PipelineExecuting"67/// Reported when a pipeline finishes an execution.8export const PIPELINE_EXECUTED: Str = "PipelineExecuted"910/// Reported after each attempt a retry or hedging strategy makes.11export const EXECUTION_ATTEMPT: Str = "ExecutionAttempt"1213/// Reported before a retry strategy waits for its next attempt.14export const ON_RETRY: Str = "OnRetry"1516/// Reported when a circuit opens.17export const ON_CIRCUIT_OPENED: Str = "OnCircuitOpened"1819/// Reported when a circuit closes.20export const ON_CIRCUIT_CLOSED: Str = "OnCircuitClosed"2122/// Reported when a circuit admits its half-open probe.23export const ON_CIRCUIT_HALF_OPENED: Str = "OnCircuitHalfOpened"2425/// Reported before a fallback strategy produces its substitute.26export const ON_FALLBACK: Str = "OnFallback"2728/// Reported before a hedging strategy starts a hedged attempt.29export const ON_HEDGING: Str = "OnHedging"3031/// Reported when a timeout strategy cancels an execution.32export const ON_TIMEOUT: Str = "OnTimeout"3334/// Reported when a rate limiter strategy rejects an execution.35export const ON_RATE_LIMITER_REJECTED: Str = "OnRateLimiterRejected"3637/// Reported when a fault is injected.38export const ON_FAULT: Str = "Chaos.OnFault"3940/// Reported when an outcome is injected.41export const ON_OUTCOME: Str = "Chaos.OnOutcome"4243/// Reported when latency is injected.44export const ON_LATENCY: Str = "Chaos.OnLatency"4546/// Reported when a behavior is injected.47export const ON_BEHAVIOR: Str = "Chaos.OnBehavior"48