using Microsoft.AspNetCore.Builder; namespace Baya.Infrastructure.Monitoring.Configurations; public static class PrometheusMetricsConfigurations { /// /// Exposes the single OpenTelemetry metrics stack for Prometheus scraping at /metrics /// (refinement-phase-9, §9.1 — replaces the removed prometheus-net UseMetricServer/ /// UseHttpMetrics stack; HTTP request metrics now come from the OTel ASP.NET Core instrumentation). /// public static WebApplication UseMetrics(this WebApplication app) { app.UseOpenTelemetryPrometheusScrapingEndpoint(); return app; } }