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
<PackageReference Include="SmartPipe.Extensions.OpenTelemetry" Version="2.2.1" />
<PackageVersion Include="SmartPipe.Extensions.OpenTelemetry" Version="2.2.1" />
<PackageReference Include="SmartPipe.Extensions.OpenTelemetry" />
paket add SmartPipe.Extensions.OpenTelemetry --version 2.2.1
#r "nuget: SmartPipe.Extensions.OpenTelemetry, 2.2.1"
#:package SmartPipe.Extensions.OpenTelemetry@2.2.1
#addin nuget:?package=SmartPipe.Extensions.OpenTelemetry&version=2.2.1
#tool nuget:?package=SmartPipe.Extensions.OpenTelemetry&version=2.2.1
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
MeternamedSmartPipe.Core(seeSmartPipeDiagnostics.MeterName); - an
ActivitySourcenamedSmartPipe.Core(seeSmartPipeDiagnostics.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/ActivitySourceinstances; - 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 | Versions 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. |
-
net10.0
- OpenTelemetry.Api.ProviderBuilderExtensions (>= 1.19.1)
- SmartPipe.Core (>= 2.2.1)
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.
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.