LevelUp.ServiceDefaults
0.3.1
dotnet add package LevelUp.ServiceDefaults --version 0.3.1
NuGet\Install-Package LevelUp.ServiceDefaults -Version 0.3.1
<PackageReference Include="LevelUp.ServiceDefaults" Version="0.3.1" />
<PackageVersion Include="LevelUp.ServiceDefaults" Version="0.3.1" />
<PackageReference Include="LevelUp.ServiceDefaults" />
paket add LevelUp.ServiceDefaults --version 0.3.1
#r "nuget: LevelUp.ServiceDefaults, 0.3.1"
#:package LevelUp.ServiceDefaults@0.3.1
#addin nuget:?package=LevelUp.ServiceDefaults&version=0.3.1
#tool nuget:?package=LevelUp.ServiceDefaults&version=0.3.1
LevelUp.ServiceDefaults
The lean, AOT-safe paved-road core for lvlup-sw services. One call wires
OpenTelemetry (logging, metrics, tracing with ASP.NET Core, HttpClient, and runtime
instrumentation), default health checks, service discovery, and the standard
HttpClient resilience handler, with validated options bound from the
LevelUp:ServiceDefaults configuration section.
Heavy dependencies (Sentry, Azure Monitor, Microsoft.Identity.Web) live in the
satellite packages — LevelUp.ServiceDefaults.Sentry, .Azure, and .Auth — so this
core stays trim/AOT-clean.
Usage
var builder = WebApplication.CreateBuilder(args);
builder.AddLevelUpServiceDefaults();
var app = builder.Build();
app.MapDefaultEndpoints(); // /health and /alive (absent in Production by default)
app.Run();
The OTLP exporter is registered only when an endpoint is configured (via
OtlpEndpoint or the OTEL_EXPORTER_OTLP_ENDPOINT environment variable). The
team and tier resource attributes resolve from options → configuration →
environment (LVLUP_TEAM/LVLUP_TIER); when neither is set they fall back to
"unknown" and a single warning is logged at startup naming which fell back.
| 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. |
-
net10.0
- Microsoft.Extensions.Http.Resilience (>= 10.7.0)
- Microsoft.Extensions.ServiceDiscovery (>= 10.7.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.16.0)
- OpenTelemetry.Extensions.Hosting (>= 1.16.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.15.2)
- OpenTelemetry.Instrumentation.Http (>= 1.15.1)
- OpenTelemetry.Instrumentation.Runtime (>= 1.15.1)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on LevelUp.ServiceDefaults:
| Package | Downloads |
|---|---|
|
LevelUp.ServiceDefaults.Bifrost
Bifrost satellite for LevelUp.ServiceDefaults: composes Bifrost work-orchestration onto the shared health + OpenTelemetry pipeline. Work-orchestration only; never a second HTTP-client resilience handler. |
|
|
LevelUp.ServiceDefaults.Sentry
Sentry-over-OpenTelemetry satellite for LevelUp.ServiceDefaults. No-op without a configured DSN. |
|
|
LevelUp.ServiceDefaults.Caching
Caching satellite for LevelUp.ServiceDefaults: FusionCache .AsHybridCache() with Redis L2 + backplane and optional at-rest encryption. L2/backplane self-disable without a cache connection string. |
|
|
LevelUp.ServiceDefaults.Azure
Azure satellite for LevelUp.ServiceDefaults: Azure Monitor OpenTelemetry distro and Key Vault configuration provider, each gated on config. No-op otherwise. |
|
|
LevelUp.ServiceDefaults.Auth
Entra ID JWT-bearer authentication satellite for LevelUp.ServiceDefaults, wiring Microsoft.Identity.Web from the AzureAd config section. Explicit opt-in. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.1 | 0 | 6/22/2026 |
| 0.3.0 | 74 | 6/21/2026 |
| 0.3.0-preview.1 | 41 | 6/21/2026 |
| 0.2.0 | 72 | 6/21/2026 |
| 0.1.0 | 48 | 6/21/2026 |