SyntaxCircus.Observability 0.1.1

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

SyntaxCircus.Observability

Build NuGet

Opt-in OpenTelemetry/OTLP, Serilog OTLP, and Sentry-compatible error-reporting support for .NET 10 server hosts.

No support guaranteed. Published as-is and maintained on a best-effort basis.

Install

dotnet add package SyntaxCircus.Observability

Quick start

using SyntaxCircus.Observability;
using SyntaxCircus.AspNetCore.Serilog;

var builder = WebApplication.CreateBuilder(args);
var telemetry = builder.AddSyntaxCircusObservability("my-service", ["MyCompany.MyMeter"]);
builder.AddStandardSerilog(configureEnrichment: telemetry.ConfigureSerilog);

if (telemetry.Options.Sentry.IsEnabled)
{
    builder.WebHost.UseSentry(sentry => telemetry.ConfigureSentry(
        sentry,
        context => context.TransactionContext.Name.Contains("/_blazor", StringComparison.OrdinalIgnoreCase) ? 0d : null));
}

var app = builder.Build();
telemetry.LogStartupWarning(app.Logger);

The registration also works with HostApplicationBuilder for OTLP traces, metrics, and Serilog logs. Sentry web capture is configured through WebApplicationBuilder.WebHost and is intentionally web-only in v1.

Configuration

The package reads standard OpenTelemetry and Sentry sections. Telemetry is disabled by default and an enabled but invalid OTLP endpoint produces a safe warning without exporting data. Sentry remains disabled until a DSN is supplied; it sends error-level events only, disables default PII collection, and has a trace sample rate of 0.0 by default.

Keep OTLP headers and Sentry DSNs in deployment secrets. Use the Sentry sampling callback for application-specific noisy routes.

License

MIT. See LICENSE.txt.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 305 9/4/2026