LevelUp.ServiceDefaults 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package LevelUp.ServiceDefaults --version 0.2.0
                    
NuGet\Install-Package LevelUp.ServiceDefaults -Version 0.2.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="LevelUp.ServiceDefaults" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LevelUp.ServiceDefaults" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LevelUp.ServiceDefaults" />
                    
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 LevelUp.ServiceDefaults --version 0.2.0
                    
#r "nuget: LevelUp.ServiceDefaults, 0.2.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 LevelUp.ServiceDefaults@0.2.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=LevelUp.ServiceDefaults&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LevelUp.ServiceDefaults&version=0.2.0
                    
Install as a Cake Tool

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 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 (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