EricksonLopez.Observability (Unpublished / Local-Only)
Unpublished / Local-Only Prototype:
dotnet-observability(EricksonLopez.Observability,1.0.0local) has no public GitHub repository (githubUrl: null) and 0 published NuGet packages (nugetVersion: null).
EricksonLopez.Observability (L2, net8.0;net9.0;net10.0, Full Native AOT) defines Service Level Objective (SLO) descriptors, multi-window burn-rate error budget policies, and zero-dependency System.Diagnostics.Metrics instrumentation using EricksonLopez.Result for validation.
Because no NuGet package is published, consume EricksonLopez.Observability via local <ProjectReference>:
using EricksonLopez.Observability;using EricksonLopez.Result;
namespace Example.Observability;
public static class SloSetup{ public static Result<ErrorBudgetEvaluation> EvaluateOrdersApi(long totalRequests, long failedRequests) { SloDescriptor slo = StandardSloCatalog.CreateApiAvailability( serviceName: "orders-api", targetRatio: 0.999m);
return ErrorBudgetPolicy.Default.Evaluate(slo, totalRequests, failedRequests); }}SliKind:Availability,Latency,Freshness,Throughput,Correctness.ErrorBudgetAction:Healthy,Warning,Alert,ExhaustedFreeze.BurnRateWindow&SloDescriptor: Validated viaSloDescriptor.Create(...)returningResult<SloDescriptor>. ExposesAllowedErrorRatio,TotalErrorBudget,TotalErrorBudgetMinutes, andDefaultBurnRateWindows(14.4x1h/5m freeze,6.0x6h/30m alert,1.0x3d/6h warning).StandardSloCatalog:CreateApiAvailability,CreateApiLatencyP95,CreateApiLatencyP99,CreateOutboxFreshness.ErrorBudgetPolicy:Evaluate(SloDescriptor, long totalEvents, long badEvents)andEvaluateFromGoodRatio(SloDescriptor, decimal observedGoodRatio).
SloTelemetryInstruments (IDisposable) uses BCL System.Diagnostics.Metrics.Meter (default meter name "EricksonLopez.Observability") emitting counters sli.events.total, sli.events.bad and histograms sli.operation.duration, sli.freshness.lag via RecordOutcome(sloId, operation, isGood, durationSeconds). No DI extension methods exist yet.
Use SloTelemetryInstruments as a singleton per service and call EvaluateFromGoodRatio in periodic health-gate checks to trigger ErrorBudgetAction.ExhaustedFreeze before error budgets are depleted.
- Roslyn Analyzers: None (
0diagnostics). - Benchmarks: No benchmarks exist in
dotnet-observability(hasBenchmarks: false).
- No
CHANGELOG.mdor historical versions exist yet (single local commit at1.0.0,0NuGet/GitHub releases).