Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

EricksonLopez.Observability (Unpublished / Local-Only)

L2UnpublishedNot on NuGetLocal HEAD: v1.0.0AOT: Full

Unpublished / Local-Only Prototype: dotnet-observability (EricksonLopez.Observability, 1.0.0 local) 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 via SloDescriptor.Create(...) returning Result<SloDescriptor>. Exposes AllowedErrorRatio, TotalErrorBudget, TotalErrorBudgetMinutes, and DefaultBurnRateWindows (14.4x 1h/5m freeze, 6.0x 6h/30m alert, 1.0x 3d/6h warning).
  • StandardSloCatalog: CreateApiAvailability, CreateApiLatencyP95, CreateApiLatencyP99, CreateOutboxFreshness.
  • ErrorBudgetPolicy: Evaluate(SloDescriptor, long totalEvents, long badEvents) and EvaluateFromGoodRatio(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 (0 diagnostics).
  • Benchmarks: No benchmarks exist in dotnet-observability (hasBenchmarks: false).
  • No CHANGELOG.md or historical versions exist yet (single local commit at 1.0.0, 0 NuGet/GitHub releases).