feat(observability): OpenTelemetry metrics (Prometheus) + tracing (OTLP)#32
Conversation
Production observability via OpenTelemetry. - Metrics: ASP.NET Core + HttpClient + .NET runtime instrumentation plus custom business counters (payments succeeded/failed, bookings confirmed) over a Meter, exposed at GET /metrics for Prometheus. Gated by Observability:Metrics:Enabled (default on); intended to be reached only from the internal network (firewall / proxy it — documented). - Tracing: ASP.NET Core + HttpClient spans, exported via OTLP only when Observability:Otlp:Endpoint is configured (no noisy export failures when unset). - IAppMetrics (Application abstraction) → AppMetrics (Api Meter) wired into the payment webhook handler so payment/booking outcomes are recorded. - Packages pinned in Directory.Packages.props (OpenTelemetry 1.15.x). Config in appsettings + .env.example. Serilog request logging stays. 53 unit + 33 integration green (/metrics serves Prometheus text); 0 warnings.
|
Warning Review limit reached
More reviews will be available in 3 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Production observability via OpenTelemetry.
Meter, exposed atGET /metricsfor Prometheus. Gated byObservability:Metrics:Enabled(default on) and intended to be reached only from the internal network — firewall/proxy it (documented).Observability:Otlp:Endpointis configured (no noisy export failures when unset).IAppMetrics(Application abstraction) →AppMetrics(APIMeter) wired into the payment webhook handler so payment/booking outcomes are recorded.Directory.Packages.props(OpenTelemetry 1.15.x). Config inappsettings.json+.env.example. Serilog request logging stays.Tests
ObservabilityTests:/metricsserves Prometheus text (OpenTelemetry boots OK). 53 unit + 33 integration green; 0 warnings.Final phase of the roadmap (indexes ✅ → Google OAuth ✅ → staff ✅ → payments ✅ → notifications/real-time ✅ → reports/demand ✅ → observability). Cloud hosting/IaC remains deferred by decision.