Ledon.Observability 0.0.1

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

Ledon.Observability

Ledon Framework 的可观测性:OpenTelemetry 链路/指标 + 健康检查,框架自身 span 开箱即用。

builder.Services.AddLedonObservability(o =>
{
    o.ServiceName = "my-app";
    o.OtlpEndpoint = new Uri("http://localhost:4317");   // 或读 OTEL_EXPORTER_OTLP_ENDPOINT
    o.UseConsoleExporter = true;                          // 开发排障:span 直接打控制台
});

builder.Services.AddLedonHealthChecks();   // IHealthCheck 实现自动发现并聚合
app.MapLedonLiveness();    // /health/live  进程在跑即 200
app.MapLedonReadiness();   // /health/ready 聚合全部检查

模块生命周期、事件发布、队列处理、定时任务执行全部自动产出 span;模块内可发自定义 span:using var span = ctx.StartActivity("加载配置");。

日志(ILogger)默认也经 OTLP 导出,含日志作用域(关联 ID 等)——trace/metrics/logs 三位一体;o.EnableLogs = false 可关。

o.UsePrometheusExporter = true + app.MapLedonPrometheus() 暴露 /metrics(Prometheus 拉取)。

依赖检查开箱即用:database 检查由 AddLedonData 自动登记(全部 DbContext CanConnectAsync);redis 检查配连接串才登记——AddLedonHealthChecks(o => o.RedisConnectionString = "...")。

完整文档:https://github.com/wosledon/ledon-framework

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 Ledon.Observability:

Package Downloads
Ledon.Aspire

.NET 10 模块化 Web 开发框架:解耦优先,自动发现与自动注入,能力按需引入。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.1 46 10/28/2026