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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fluens.Web.Observability" Version="0.7.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluens.Web.Observability" Version="0.7.9" />
                    
Directory.Packages.props
<PackageReference Include="Fluens.Web.Observability" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fluens.Web.Observability --version 0.7.9
                    
#r "nuget: Fluens.Web.Observability, 0.7.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fluens.Web.Observability@0.7.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fluens.Web.Observability&version=0.7.9
                    
Install as a Cake Addin
#tool nuget:?package=Fluens.Web.Observability&version=0.7.9
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed