Fluens.Web.Observability
0.7.9
dotnet add package Fluens.Web.Observability --version 0.7.9
NuGet\Install-Package Fluens.Web.Observability -Version 0.7.9
<PackageReference Include="Fluens.Web.Observability" Version="0.7.9" />
<PackageVersion Include="Fluens.Web.Observability" Version="0.7.9" />
<PackageReference Include="Fluens.Web.Observability" />
paket add Fluens.Web.Observability --version 0.7.9
#r "nuget: Fluens.Web.Observability, 0.7.9"
#:package Fluens.Web.Observability@0.7.9
#addin nuget:?package=Fluens.Web.Observability&version=0.7.9
#tool nuget:?package=Fluens.Web.Observability&version=0.7.9
Fluens.Web.Observability
ASP.NET Core observability features: Prometheus metrics endpoint and request logging middleware.
Installation
dotnet add package Fluens.Web.Observability
Usage
fluensBuilder
.AddObservability()
.AddPrometheusExporter();
app.UseRequestLogging(); // Logs: HTTP {Method} {Path} responded {StatusCode} in {Elapsed}ms
app.UsePrometheusEndpoint(); // Maps /metrics endpoint
AddPrometheusExporter() requires AddObservability() (from Fluens.Observability) to have been
called first — it attaches to the OpenTelemetry meter provider AddObservability() sets up. Calling it
before AddObservability() throws InvalidOperationException naming AddObservability() as the
required call. Once AddObservability() has run, AddPrometheusExporter() still silently registers
nothing when ObservabilityOptions.Enabled or EnableMetrics is false.
UseRequestLogging() and UsePrometheusEndpoint() probe the marker singleton AddObservability()
registers on its enabled path instead of re-reading configuration. This makes both a no-op - no
middleware added, no /metrics route mapped - when observability was disabled through a callback or
config, or when AddObservability() was never called at all; either way the host starts cleanly. When
AddObservability() did run and is enabled, each extension additionally honours its own sub-flag
(EnableLogging / EnableMetrics).
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Fluens.Observability (>= 0.7.9)
- Fluens.Web (>= 0.7.9)
- OpenTelemetry.Exporter.Prometheus.AspNetCore (>= 1.18.0-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.9 | 38 | 9/11/2026 |
| 0.7.8 | 37 | 9/10/2026 |
| 0.7.7 | 43 | 9/10/2026 |
| 0.7.6 | 107 | 7/1/2026 |
| 0.7.5 | 98 | 6/22/2026 |
| 0.7.4 | 102 | 6/18/2026 |
| 0.7.2 | 81 | 6/18/2026 |
| 0.7.1 | 95 | 6/18/2026 |
| 0.6.6 | 229 | 3/11/2026 |
| 0.6.5 | 77 | 3/4/2026 |
| 0.6.4 | 79 | 3/4/2026 |
| 0.6.3 | 88 | 3/3/2026 |
| 0.6.2 | 89 | 3/2/2026 |
| 0.6.1 | 78 | 3/2/2026 |
| 0.6.0 | 81 | 3/1/2026 |
| 0.5.7 | 83 | 3/1/2026 |
| 0.5.6 | 81 | 3/1/2026 |
| 0.5.5 | 81 | 2/28/2026 |
| 0.5.4 | 81 | 2/28/2026 |
| 0.5.3 | 84 | 2/27/2026 |