Arkanis.Common.Aspire.ServiceDefaults 1.0.0-dev.1

This is a prerelease version of Arkanis.Common.Aspire.ServiceDefaults.
dotnet add package Arkanis.Common.Aspire.ServiceDefaults --version 1.0.0-dev.1
                    
NuGet\Install-Package Arkanis.Common.Aspire.ServiceDefaults -Version 1.0.0-dev.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="Arkanis.Common.Aspire.ServiceDefaults" Version="1.0.0-dev.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Arkanis.Common.Aspire.ServiceDefaults" Version="1.0.0-dev.1" />
                    
Directory.Packages.props
<PackageReference Include="Arkanis.Common.Aspire.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 Arkanis.Common.Aspire.ServiceDefaults --version 1.0.0-dev.1
                    
#r "nuget: Arkanis.Common.Aspire.ServiceDefaults, 1.0.0-dev.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 Arkanis.Common.Aspire.ServiceDefaults@1.0.0-dev.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=Arkanis.Common.Aspire.ServiceDefaults&version=1.0.0-dev.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Arkanis.Common.Aspire.ServiceDefaults&version=1.0.0-dev.1&prerelease
                    
Install as a Cake Tool

Arkanis.Common.Aspire.ServiceDefaults

Reusable Aspire-style service defaults for Arkanis .NET services. This package configures OpenTelemetry, service discovery, HTTP resilience, default health checks, and liveness, readiness, and startup endpoints.

Installation

dotnet add package Arkanis.Common.Aspire.ServiceDefaults

Usage

using Arkanis.Common.Aspire.ServiceDefaults;

var builder = WebApplication.CreateBuilder(args);

builder.AddServiceDefaults(options =>
{
    options.OpenTelemetry.Meters.Add("Arkanis.Example");
    options.OpenTelemetry.Sources.Add("Arkanis.Example.Workflows");
});

var app = builder.Build();

app.MapDefaultEndpoints();

app.Run();

Scope

The package reads standard OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_PROTOCOL configuration values. It does not force an exporter when no OTLP endpoint is configured. It does not register application-specific meters, sources, or health checks beyond the default liveness check.

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
1.0.0-dev.1 48 7/9/2026