telemetra.monitoring 1.0.0

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

Telemetra Monitoring SDK

Overview

Telemetra Monitoring SDK provides a unified, extensible, and production-ready observability solution for .NET applications. It enables seamless collection and export of traces, metrics, and logs to multiple backends (OTLP, Jaeger, Grafana, Sentry, Tempo, Alloy, Console, Prometheus, Zipkin) with advanced configuration, business insights, and enterprise features.


Features

  • Unified Telemetry: Tracing, metrics, and logging in one SDK
  • Multi-backend Support: OTLP (gRPC/HTTP), Jaeger, Grafana, Sentry, Tempo, Alloy, Console, Prometheus, Zipkin
  • Business Metrics: Custom business and system metrics (import operations, API, DB, orchestration, etc.)
  • Structured Logging: Business event templates and structured log output
  • Advanced Tracing: Custom spans, attributes, and distributed tracing
  • Resilience: Multiple endpoints, priority routing, timeouts, and fallback
  • Plug-and-play: Easy integration with .NET, Azure Functions, and microservices
  • Extensible: Add your own exporters, metrics, and log templates

Getting Started

1. Install the NuGet Package

# Coming soon: Replace with actual NuGet package name
Install-Package Telemetra.Monitoring

2. Add Configuration

Add a appsettings.Telemetra.json file (or use your main appsettings) with the following structure:

{
  "TelemetraMonitoring": {
    "OpenTelemetry": {
      "Enabled": true,
      "ServiceName": "YourAppName",
      "ServiceVersion": "1.0.0",
      "Environment": "production",
      "ActivitySources": ["YourAppName"],
      "Meters": ["YourAppName"],
      "Endpoints": [
        { "Name": "Console", "Enabled": true, "ConsoleOutput": true },
        { "Name": "Primary", "Enabled": true, "GrpcEndpoint": "https://your-otlp-endpoint:4317" }
      ]
    },
    "CustomMetrics": {
      "Enabled": true,
      "BusinessMetrics": { ... },
      "SystemMetrics": { ... }
    },
    "StructuredLogging": { ... }
  }
}

3. Register Telemetra in Program.cs

services.AddTelemetraMonitoring(config.GetSection("TelemetraMonitoring"));

Usage

Tracing

  • Automatic instrumentation for HTTP, SQL, and custom sources
  • Add custom spans and attributes as needed

Metrics

  • Built-in and custom business metrics (import operations, API, DB, etc.)
  • Use the BusinessMetricsService to record custom metrics

Logging

  • Structured logging with business event templates
  • Logs exported to OTLP, Console, and other backends

Example: Record a Business Metric

public class ImportDataHttpTrigger
{
    private readonly BusinessMetricsService _metricsService;
    public async Task Run(...)
    {
        _metricsService.RecordImportOperation("tenantId", "orders", "success", 1234);
    }
}

Supported Exporters

  • OTLP (gRPC/HTTP)
  • Jaeger
  • Grafana Tempo
  • Alloy
  • Sentry
  • Prometheus
  • Zipkin
  • Console

Advanced Features

  • Multiple endpoints with priority and fallback
  • Custom business metrics and structured logging
  • Enterprise-grade resilience and extensibility

Documentation


License

MIT License


Contributing

Contributions are welcome! Please open issues or pull requests for improvements, bug fixes, or new features.


Authors

  • Stephen Oyetoro & Contributors
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
1.0.0 176 7/8/2025