Czlovek.Telemetry 3.0.0-beta.1

This is a prerelease version of Czlovek.Telemetry.
dotnet add package Czlovek.Telemetry --version 3.0.0-beta.1
                    
NuGet\Install-Package Czlovek.Telemetry -Version 3.0.0-beta.1
                    
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="Czlovek.Telemetry" Version="3.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Czlovek.Telemetry" Version="3.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="Czlovek.Telemetry" />
                    
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 Czlovek.Telemetry --version 3.0.0-beta.1
                    
#r "nuget: Czlovek.Telemetry, 3.0.0-beta.1"
                    
#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 Czlovek.Telemetry@3.0.0-beta.1
                    
#: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=Czlovek.Telemetry&version=3.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Czlovek.Telemetry&version=3.0.0-beta.1&prerelease
                    
Install as a Cake Tool

Telemetry

Wires up OpenTelemetry tracing, metrics and logging for an ASP.NET Core service, and provides a small abstraction (MetricsManager) for defining custom application metrics.

Usage

Configuring OpenTelemetry

builder.Services.AddTelemetry(builder.Configuration);
builder.UseTelemetry();

AddTelemetry registers ASP.NET Core, HttpClient and SQL client instrumentation for both tracing and metrics, and exports everything via OTLP. UseTelemetry wires the same resource/exporter configuration into the logging pipeline. Configuration is read from the Telemetry section:

{
  "Telemetry": {
    "OtlpEndpoint": "http://otel-collector:4317",
    "ServiceName": "MyService",
    "ServiceVersion": "1.0.0",
    "ServiceNamespace": "Czlovek.Services",
    "Protocol": "grpc"
  }
}

Custom metrics

Derive from MetricsManager to define your own counters, gauges and histograms backed by a System.Diagnostics.Metrics.Meter:

public class OrdersMetrics(ITelemetryConfig config, ILogger<MetricsManager> logger)
    : MetricsManager(config, logger)
{
    public CounterInstrument<long> OrdersCreated { get; } = CreateCounter<long>("orders_created");
}

Instrument names are automatically prefixed with the entry assembly name and converted to snake_case.

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
3.0.0-beta.1 54 7/19/2026
2.1.0-beta.85 75 6/16/2026
2.1.0-beta.84 64 5/7/2026
2.1.0-beta.83 64 5/7/2026
2.1.0-beta.82 115 3/20/2026
2.1.0-beta.81 79 2/21/2026
2.1.0-beta.80 79 2/21/2026
2.1.0-beta.79 86 2/13/2026
2.1.0-beta.78 89 2/11/2026
2.1.0-beta.77 80 2/11/2026
2.1.0-beta.76 73 2/10/2026
2.1.0-beta.75 104 2/10/2026
2.1.0-beta.74 95 1/28/2026
2.1.0-beta.73 216 11/6/2025
2.1.0-beta.72 193 11/6/2025
2.1.0-beta.71 198 11/4/2025
2.1.0-beta.70 187 11/4/2025
2.1.0-beta.69 196 11/4/2025
2.1.0-beta.68 183 11/4/2025
2.1.0-beta.67 191 11/2/2025
Loading failed