Raycynix.Extensions.Observability.AspNetCore
2.2.0
dotnet add package Raycynix.Extensions.Observability.AspNetCore --version 2.2.0
NuGet\Install-Package Raycynix.Extensions.Observability.AspNetCore -Version 2.2.0
<PackageReference Include="Raycynix.Extensions.Observability.AspNetCore" Version="2.2.0" />
<PackageVersion Include="Raycynix.Extensions.Observability.AspNetCore" Version="2.2.0" />
<PackageReference Include="Raycynix.Extensions.Observability.AspNetCore" />
paket add Raycynix.Extensions.Observability.AspNetCore --version 2.2.0
#r "nuget: Raycynix.Extensions.Observability.AspNetCore, 2.2.0"
#:package Raycynix.Extensions.Observability.AspNetCore@2.2.0
#addin nuget:?package=Raycynix.Extensions.Observability.AspNetCore&version=2.2.0
#tool nuget:?package=Raycynix.Extensions.Observability.AspNetCore&version=2.2.0
Raycynix.Extensions.Observability.AspNetCore
Raycynix.Extensions.Observability.AspNetCore adds ASP.NET Core integration for Raycynix observability and includes the core observability registration.
What it contains
AddRaycynixAspNetCoreObservability(...)UseRaycynixObservability(this IApplicationBuilder app)MapRaycynixObservabilityEndpoints(this IEndpointRouteBuilder endpoints)- correlation middleware and
HttpClientcorrelation propagation
Usage
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRaycynixAspNetCoreObservability();
var app = builder.Build();
app.UseRaycynixObservability();
app.MapRaycynixObservabilityEndpoints();
app.Run();
AddRaycynixAspNetCoreObservability(...) already calls AddRaycynixObservability(), so no extra core registration is required in ASP.NET Core applications.
You can also map custom paths:
app.MapRaycynixObservabilityEndpoints("/internal/health", "/internal/metrics");
The middleware uses standard Microsoft.Extensions.Logging scopes for correlation diagnostics when a logger provider is registered. It does not require Raycynix.Extensions.Logging.
By default, the request logging scope includes CorrelationId, TraceId, UserId, SubjectId, and SubjectType to preserve the previous enrichment behavior. Applications that do not want user or subject identifiers in log scopes can disable that part:
builder.Services.AddRaycynixAspNetCoreObservability(options =>
{
options.IncludeIdentityInLoggingScope = false;
});
| 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
- Raycynix.Extensions.Metrics.AspNetCore (>= 2.2.0)
- Raycynix.Extensions.Observability (>= 2.2.0)
- Raycynix.Extensions.Security.Abstractions (>= 2.2.0)
- Raycynix.Extensions.Tracing.AspNetCore (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Starts unified versioning for Raycynix packages from this release, uses provider-agnostic Microsoft.Extensions.Logging scopes for correlation diagnostics, and allows identity scope enrichment to be disabled.