Raycynix.Extensions.Tracing.AspNetCore
3.0.0
dotnet add package Raycynix.Extensions.Tracing.AspNetCore --version 3.0.0
NuGet\Install-Package Raycynix.Extensions.Tracing.AspNetCore -Version 3.0.0
<PackageReference Include="Raycynix.Extensions.Tracing.AspNetCore" Version="3.0.0" />
<PackageVersion Include="Raycynix.Extensions.Tracing.AspNetCore" Version="3.0.0" />
<PackageReference Include="Raycynix.Extensions.Tracing.AspNetCore" />
paket add Raycynix.Extensions.Tracing.AspNetCore --version 3.0.0
#r "nuget: Raycynix.Extensions.Tracing.AspNetCore, 3.0.0"
#:package Raycynix.Extensions.Tracing.AspNetCore@3.0.0
#addin nuget:?package=Raycynix.Extensions.Tracing.AspNetCore&version=3.0.0
#tool nuget:?package=Raycynix.Extensions.Tracing.AspNetCore&version=3.0.0
Raycynix.Extensions.Tracing.AspNetCore
Version 3.0.0 integrates the shared Raycynix ActivitySource with OpenTelemetry ASP.NET Core request instrumentation.
Registration
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRaycynixAspNetCoreTracing();
var app = builder.Build();
app.Run();
No custom tracing middleware is required. ASP.NET Core creates server activities, while standard Microsoft.Extensions.Logging activity tracking adds TraceId and SpanId to logging scopes.
OTLP and Aspire
Add an exporter through the standard OpenTelemetry callback:
builder.Services.AddRaycynixAspNetCoreTracing(tracing =>
{
tracing.AddOtlpExporter(); // requires OpenTelemetry.Exporter.OpenTelemetryProtocol
});
Aspire resources can use the same registration with the OTLP exporter supplied by their service-default pipeline.
Additional instrumentation
builder.Services.AddRaycynixAspNetCoreTracing(tracing =>
{
tracing.AddHttpClientInstrumentation();
});
Install the corresponding OpenTelemetry instrumentation package when adding optional components.
Migration from 2.x
- replace
AddRaycynixTracing()in web applications withAddRaycynixAspNetCoreTracing() - remove
UseRaycynixTracing() - remove custom
TracingMiddlewarereferences - configure exporters through the
TracerProviderBuildercallback
| 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.Extensions.Hosting (>= 1.17.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.17.0)
- Raycynix.Extensions.Tracing (>= 3.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Raycynix.Extensions.Tracing.AspNetCore:
| Package | Downloads |
|---|---|
|
Raycynix.Extensions.Observability.AspNetCore
ASP.NET Core observability composition with correlation propagation, standard OpenTelemetry request metrics, tracing, and explicit health endpoint mapping. |
GitHub repositories
This package is not used by any popular GitHub repositories.
v3.0.0 replaces custom request middleware with stable OpenTelemetry ASP.NET Core instrumentation and standard Microsoft.Extensions.Logging activity tracking scopes.