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" />
<PackageReference Include="Sylin.Koan.Recipe.Observability" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Sylin.Koan.Recipe.Observability&version=0.17.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Koan.Recipe.Observability
Contract
- Purpose: Ship a prebuilt observability bundle for Koan applications, wiring health checks, OpenTelemetry, and resilient HTTP clients.
- Primary inputs:
ObservabilityRecipeimplementation, 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.
Related packages
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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Http.Resilience (>= 10.6.0)
- Sylin.Koan.Recipe.Abstractions (>= 0.17.0 && < 0.18.0)
- Sylin.Koan.Web (>= 0.17.0 && < 0.18.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
See release notes: https://github.com/sylin-labs/Koan-framework/releases