VOOZH about

URL: https://www.nuget.org/packages/Mitf.Observability/

⇱ NuGet Gallery | Mitf.Observability 1.0.0




Mitf.Observability 1.0.0

dotnet add package Mitf.Observability --version 1.0.0
 
 
NuGet\Install-Package Mitf.Observability -Version 1.0.0
 
 
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="Mitf.Observability" Version="1.0.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mitf.Observability" Version="1.0.0" />
 
Directory.Packages.props
<PackageReference Include="Mitf.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 Mitf.Observability --version 1.0.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mitf.Observability, 1.0.0"
 
 
#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 Mitf.Observability@1.0.0
 
 
#: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=Mitf.Observability&version=1.0.0
 
Install as a Cake Addin
#tool nuget:?package=Mitf.Observability&version=1.0.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Mitf.Observability

MITF ASP.NET Core observability bootstrap for .NET 10 apps:

  • Consul optional config source (KV bootstrap + reload)
  • Serilog sinks: Console, Loki, PostgreSQL, Elasticsearch, SQL Server
  • OpenTelemetry traces, metrics, logs, Prometheus /metrics scraping

Everything is disabled by default and turned on via configuration.

Install

dotnet add package Mitf.Observability

Wire-up

using Observability.Hosting;
using Observability.Logger;
using Observability.Telemetry;

var builder = WebApplication.CreateBuilder(args);

builder.AddObservabilityBootstrap();

var app = builder.Build();

app.UseObservability();

if (builder.Configuration.GetValue("InternalLoggerOptions:Enabled", false))
{
 app.UseMiddleware<ApiLoggingMiddleware>();
}

Configuration (appsettings.json)

{
 "ConfigSource": {
 "Type": "appsettings",
 "ApplicationName": "my-service"
 },
 "InternalLoggerOptions": {
 "Enabled": false,
 "LogType": "Console",
 "ConnectionString": "",
 "TableName": "Logs_"
 },
 "Observability": {
 "Enabled": false,
 "ServiceName": "MyService.Api",
 "CollectorUrl": "http://otel-collector:4317",
 "EnableTracing": false,
 "EnableMetrics": false,
 "EnableLogging": false,
 "PrometheusEndpoint": "/metrics"
 }
}

When Observability:Enabled=true and all three sub-flags are false, tracing, metrics, and logging are auto-enabled.

Serilog LogType values

Value Connection string
Console not required
Loki http://loki:3100
PostGres PostgreSQL connection string
Elastic http://elasticsearch:9200
Sql SQL Server connection string

Docker observability stack

Pair with Consul, Loki, Tempo, Prometheus, Grafana, and OTEL Collector. See the insurance-provider-hub docker-compose.yml observability profile and infra/ configs as the reference template.

Publishing

Maintainers: run scripts/publish-mitf-observability.ps1 with a NuGet API key. See docs/hub/PUBLISH-MITF-OBSERVABILITY.md in the source repository.

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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
1.0.0 377 6/2/2026