SmartPipe.Extensions.OpenTelemetry 2.2.1

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

SmartPipe.Extensions.OpenTelemetry

Exporter-neutral OpenTelemetry registration for SmartPipe pipeline diagnostics.

Installation

dotnet package add SmartPipe.Extensions.OpenTelemetry

SmartPipe.Core owns its telemetry emission through the .NET diagnostics APIs:

  • a Meter named SmartPipe.Core (see SmartPipeDiagnostics.MeterName);
  • an ActivitySource named SmartPipe.Core (see SmartPipeDiagnostics.ActivitySourceName).

This package does not emit telemetry itself. It registers those existing sources into the standard OpenTelemetry builder so the application decides how signals are collected and exported.

Usage

The sample assumes the application installs its own OpenTelemetry packages:

dotnet package add OpenTelemetry.Extensions.Hosting --version 1.17.0
dotnet package add OpenTelemetry.Exporter.OpenTelemetryProtocol --version 1.17.0
using Microsoft.Extensions.DependencyInjection;
using OpenTelemetry;
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;
using SmartPipe.Extensions.OpenTelemetry;

var services = new ServiceCollection();

services.AddOpenTelemetry()
    .WithMetrics(metrics => metrics.AddOtlpExporter())
    .WithTracing(tracing => tracing.AddOtlpExporter())
    .AddSmartPipeInstrumentation();

These packages remain application-owned: SmartPipe.Extensions.OpenTelemetry itself depends only on SmartPipe.Core and OpenTelemetry.Api.ProviderBuilderExtensions.

AddSmartPipeInstrumentation is the only public API. It:

  • null-checks the builder and returns the exact same builder instance;
  • registers AddMeter(SmartPipeDiagnostics.MeterName) for metrics;
  • registers AddSource(SmartPipeDiagnostics.ActivitySourceName) for tracing;
  • does not build providers, does not start background work, does not create additional Meter/ActivitySource instances;
  • does not select an exporter or configure resources, samplers, views, processors, or readers.

Repeated successful calls on the same IServiceCollection produce one logical SmartPipe registration for metrics and one for tracing. Different service collections remain independent. Retrying on the same collection after an OpenTelemetry configuration callback threw is not supported.

Emission vs registration vs export

Concern Owner
Emitting metrics and activities SmartPipe.Core
Registering SmartPipe sources with OpenTelemetry SmartPipe.Extensions.OpenTelemetry
Selecting and configuring exporters (OTLP, Console, Prometheus, vendor) Application

The production dependency surface is SmartPipe.Core and OpenTelemetry.Api.ProviderBuilderExtensions only. No exporter, SDK hosting integration, or instrumentation package is referenced by this package; an application can change its exporter without rebuilding SmartPipe packages.

Exporters

Any application-owned composition is valid: no exporter, OTLP, Console, Prometheus, or a vendor exporter. OTLP is the recommended neutral production example. OpenTelemetry .NET automatic instrumentation environment variables may interoperate with the same sources, but they remain an optional, experimental application concern; they are not part of this package's API or its compatibility promise, and no profiler or startup hook dependency is added.

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 (1)

Showing the top 1 NuGet packages that depend on SmartPipe.Extensions.OpenTelemetry:

Package Downloads
SmartPipe.Extensions

Compatibility facade and convenience bundle for SmartPipe.Core and its runtime integration packages. New applications should reference specific SmartPipe.Extensions.* packages. Retained 2.1.2 APIs use type forwarding or the frozen legacy DI/Hosting/Health cluster; removed HTTP/Polly APIs require migration and recompilation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 154 10/13/2026
2.2.0 972 10/7/2026

SmartPipe 2.2.1 servicing release; package compatibility is validated against 2.2.0. See https://github.com/MrFr3di/SmartPipe-Core/blob/main/CHANGELOG.md for release-wide changes and opt-in Core runtime APIs.