Uniphar.Platform.Telemetry 1.0.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Uniphar.Platform.Telemetry --version 1.0.3.1
                    
NuGet\Install-Package Uniphar.Platform.Telemetry -Version 1.0.3.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="Uniphar.Platform.Telemetry" Version="1.0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Uniphar.Platform.Telemetry" Version="1.0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="Uniphar.Platform.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 Uniphar.Platform.Telemetry --version 1.0.3.1
                    
#r "nuget: Uniphar.Platform.Telemetry, 1.0.3.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 Uniphar.Platform.Telemetry@1.0.3.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=Uniphar.Platform.Telemetry&version=1.0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=Uniphar.Platform.Telemetry&version=1.0.3.1
                    
Install as a Cake Tool

Uniphar.Platform.Telemetry

Uniphar.Platform.Telemetry is a .NET library for enhanced telemetry, logging, and metrics collection. It is designed to be used as a NuGet package in .NET applications to provide structured logging and custom event telemetry.

Features

  • Ambient Properties Log Enricher: Automatically enriches log records with ambient properties for better traceability.
  • Custom Event Telemetry Client: Send custom events to your telemetry backend with structured data.
  • Exception to Custom Event Converter: Convert exceptions into custom telemetry events for improved error tracking.
  • Reflection Extensions: Utilities for working with .NET reflection in telemetry scenarios.
  • Telemetry Extensions: Extension methods for easier integration with logging and telemetry frameworks.

Installation

Install via NuGet:

Install-Package Uniphar.Platform.Telemetry

Or using the .NET CLI:

dotnet add package Uniphar.Platform.Telemetry

Usage

Add a reference to the package in your project. Example usage:

using Uniphar.Platform.Telemetry;

// Register OpenTelemetry in your application's startup/configuration
builder.RegisterOpenTelemetry("my-application");

// Example usage in a class
public class MyClass
{
    private readonly ICustomEventTelemetryClient _telemetry;

    public MyClass(ICustomEventTelemetryClient telemetry)
    {
        _telemetry = telemetry;
        _metrics = metrics;
    }

    public void DoSomething()
    {
        _telemetry.TrackEvent("DoingSomething", new() { ["Property1"] = "Value" });
    }
}

Building

To build the project:

cd src/Uniphar.Platform.Telemetry
dotnet build

Testing

Unit tests are provided in the Uniphar.Platform.Telemetry.Tests project:

cd src/Uniphar.Platform.Telemetry.Tests
dotnet test

Project Structure

  • Uniphar.Platform.Telemetry/ - Main library source code
  • Uniphar.Platform.Telemetry.Tests/ - Unit tests

Contributing

Contributions are welcome! Please submit issues or pull requests via GitHub.

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
2.0.20 173 4/28/2026
2.0.19 1,141 4/7/2026
2.0.18 110 4/3/2026
2.0.17 139 4/2/2026
2.0.16 431 3/6/2026
2.0.15 155 3/4/2026
2.0.14 117 3/3/2026
2.0.13 833 2/17/2026
2.0.12 400 2/11/2026
2.0.11 98 2/11/2026
2.0.10 103 2/11/2026
2.0.9 119 2/11/2026
2.0.8 323 2/9/2026
2.0.6 1,143 1/12/2026
2.0.1-beta.7 56 2/9/2026
1.0.5 395 12/30/2025
1.0.4.1 1,295 11/11/2025
1.0.3.1 280 11/7/2025
1.0.2.1 179 11/7/2025