aspire-service-defaults

Configure Aspire ServiceDefaults with OpenTelemetry, health checks, service discovery, and HTTP resilience.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/MudraMartin/dotlight-skillset --skill aspire-service-defaults-mudramartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspire-service-defaults
Source: https://github.com/MudraMartin/dotlight-skillset/tree/main/dotnet/aspire-service-defaults
Command: npx skills add https://github.com/MudraMartin/dotlight-skillset --skill aspire-service-defaults-mudramartin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Microsoft.Extensions.Http.Resilience, Microsoft.Extensions.ServiceDiscovery, OpenTelemetry.Exporter.OpenTelemetryProtocol, OpenTelemetry.Extensions.Hosting, OpenTelemetry.Instrumentation.AspNetCore, OpenTelemetry.Instrumentation.Http, OpenTelemetry.Instrumentation.Runtime, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of setting up or modifying Aspire ServiceDefaults projects, ensuring consistent observability, health checks, resilience, and service discovery configuration across all services.

Core Features & Use Cases

  • Observability: Provides OpenTelemetry for logging, tracing, and metrics.
  • Health Checks: Configures readiness and liveness endpoints.
  • Service Discovery: Enables automatic service resolution.
  • HTTP Resilience: Implements retry and circuit breaker policies.
  • Use Case: For a .NET developer building an Aspire-based distributed application, this Skill streamlines the process of setting up shared configurations for observability and resilience.

Quick Start

Set up the Aspire Service Defaults in your project by adding the skill and configuring the necessary dependencies.

Frequently Asked Questions about aspire-service-defaults

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OpenTelemetry in a .NET Aspire project?

You configure OpenTelemetry in an Aspire project by applying this Skill to set up the ServiceDefaults project, which adds logging, tracing, and metrics instrumentation packages across all distributed services.

What do I need to set up Aspire service discovery and HTTP resilience?

Setting up Aspire service discovery and HTTP resilience requires the Microsoft.Extensions.ServiceDiscovery and Microsoft.Extensions.Http.Resilience packages, which this Skill automatically configures for automatic service resolution and retry policies.

Does this Skill work with existing .NET distributed applications using the Aspire framework?

Yes, this Skill works with .NET applications using the Aspire framework. It applies shared configurations for observability and resilience, ensuring consistent health checks and telemetry across your distributed services.

What is the best way to add health checks and observability to Aspire services?

The best way to add health checks and observability to Aspire services is by configuring the ServiceDefaults project, which centralizes readiness and liveness endpoints alongside OpenTelemetry setup for all distributed application services.

Why do I need OpenTelemetry Exporter OpenTelemetryProtocol for Aspire service defaults?

You need the OpenTelemetry.Exporter.OpenTelemetryProtocol package to export telemetry data from your Aspire services. This Skill uses it alongside runtime and HTTP instrumentation to provide unified observability.