Sylin.Koan.Recipe.Observability 0.17.0

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

Koan.Recipe.Observability

Contract

  • Purpose: Ship a prebuilt observability bundle for Koan applications, wiring health checks, OpenTelemetry, and resilient HTTP clients.
  • Primary inputs: ObservabilityRecipe implementation, Koan recipe registry, environment configuration for telemetry exporters.
  • Outputs: Registered OpenTelemetry pipelines, health probe endpoints, and HTTP client policies.
  • Failure modes: Missing exporter configuration (OTLP endpoint), disabled health probe dependencies, or recipe applied in an unsupported environment.
  • Success criteria: Applications emit traces/metrics with sane defaults, health checks expose readiness endpoints, and HttpClient resiliency policies are active.

Quick start

public sealed class ObservabilityAutoRegistrar : IKoanAutoRegistrar
{
    public string ModuleName => "Observability";

    public void Initialize(IServiceCollection services)
    {
        services.AddKoanRecipe<ObservabilityRecipe>();
    }

    public void Describe(BootReport report, IConfiguration cfg, IHostEnvironment env)
        => report.AddNote("Observability recipe registered");
}

// During startup
await RecipeApplier.ApplyAsync("observability:otel", cancellationToken);
  • Register the recipe so it becomes available to the recipe applier; optionally auto-apply it during bootstrap.
  • Override options via configuration (e.g., Koan:Telemetry:Otlp:Endpoint) to point at your collector.

Configuration

  • OTLP exporter: set endpoint, headers, and resource attributes through standard Koan configuration sources.
  • Health probes: customize tags and intervals in the recipe options.
  • HttpClient policies: configure retry/backoff counts by binding Koan:Http:Policies.

Edge cases

  • Exporter offline: recipe still configures instrumentation, but OpenTelemetry fallback logs warnings—ensure collectors are reachable.
  • Local development: enable console exporter for easy debugging by toggling Koan:Telemetry:Console.
  • High-throughput services: adjust batch size and flush intervals to prevent blocking.
  • Restricted environments: disable tracing selectively via feature flags if telemetry is disallowed.
  • Koan.Recipe.Abstractions – recipe infrastructure consumed here.
  • Koan.Core – options and logging helpers for telemetry settings.
  • Koan.Web – health endpoint hosting.

Reference

  • ObservabilityRecipe – implementation applying telemetry services.
  • RecipeApplier – API for enabling recipes at runtime.
  • /docs/guides/observability/index.md – extend with specifics for this recipe.
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.17.0 199 6/12/2026
0.8.0 111 5/16/2026