Raycynix.Extensions.Observability 3.0.0

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

Raycynix.Extensions.Observability

Raycynix.Extensions.Observability contains the core observability composition for Raycynix applications.

What it contains

  • AddRaycynixObservability(...)
  • registration of tracing and the standard IMeterFactory metrics services
  • IOperationContext registration

What it does not contain

  • ASP.NET Core middleware
  • endpoint mapping
  • HttpClient correlation propagation

Usage

builder.Services.AddRaycynixObservability();

Raycynix components emit provider-neutral System.Diagnostics.Metrics instruments. Configure an OpenTelemetry exporter in the host that collects the Raycynix.Extensions meter.

public sealed class CheckoutHandler(
    IOperationContext operationContext,
    Microsoft.Extensions.Logging.ILogger<CheckoutHandler> logger)
{
    public void Handle()
    {
        using var activity = Raycynix.Extensions.Tracing.Abstractions.RaycynixTracing
            .ActivitySource.StartActivity("checkout.handle");

        logger.LogInformation(
            "Handling checkout. CorrelationId:{CorrelationId} TraceId:{TraceId}",
            operationContext.CorrelationId,
            operationContext.TraceId);
    }
}

AddRaycynixObservability() does not register Raycynix.Extensions.Serilog. Applications can use any provider that works with Microsoft.Extensions.Logging.

For ASP.NET Core integration, use Raycynix.Extensions.Observability.AspNetCore. AddRaycynixAspNetCoreObservability(...) already calls AddRaycynixObservability() for you.

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 Raycynix.Extensions.Observability:

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 composes the standard IMeterFactory-based Metrics 3.0 pipeline, the shared ActivitySource-based Tracing 3.0 pipeline, and operation context registration.