logging

Configure Serilog structured logging, correlation IDs, and health endpoints for .NET 10 services.

224|87|Updated Dec 15, 2018
One-click install
npx skills add https://github.com/Resgrid/Core --skill logging-resgrid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging
Source: https://github.com/Resgrid/Core/tree/main/.opencode/skills/logging
Command: npx skills add https://github.com/Resgrid/Core --skill logging-resgrid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you turn scattered logs into reliable observability by standardizing structured logging, distributed tracing, correlation, and health checks.

Core Features & Use Cases

  • Structured logging with Serilog to emit searchable, filterable log events with consistent properties.
  • OpenTelemetry guidance for distributed tracing and telemetry to connect request flows across services and collect metrics.
  • Health checks for operational readiness using separate liveness and readiness endpoints.
  • Correlation IDs across log entries and downstream calls to track a single request through your system.
  • Runbook-style safety practices such as avoiding string interpolation in logs, not logging secrets, and tagging health checks correctly.

Quick Start

Load the logging skill and configure Serilog structured logging plus correlation IDs and health endpoints in your .NET 10 service.

Frequently Asked Questions about logging

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

FAQPage Schema
How do I set up structured logging with Serilog in a .NET 10 service?

You configure structured logging with Serilog in .NET 10 by emitting searchable, filterable log events with consistent properties. This Skill provides setup guidance to establish consistent telemetry for debugging and monitoring.

What is the best way to track a single request across multiple services?

To track a single request across services, use correlation IDs across log entries and downstream calls. This Skill enables correlation ID propagation to connect request flows across services and distributed traces.

How do I implement liveness and readiness health checks for operational readiness?

You implement liveness and readiness health checks using separate operational readiness endpoints. This Skill provides /health live/ready patterns to ensure your service is correctly tagged and ready for production traffic.

Does this logging approach work with OpenTelemetry for distributed tracing?

Yes, this logging approach works with OpenTelemetry by providing guidance for distributed tracing and telemetry integration. It connects request flows across services and collects metrics for .NET 10 workloads.

What are the anti-patterns to avoid when implementing structured logging?

Anti-patterns to avoid when implementing structured logging include using string interpolation in logs and logging secrets. This Skill provides runbook-style safety practices to preserve structured log integrity and prevent sensitive-data logging.

When do I need distributed tracing and structured logging for my .NET 10 application?

You need distributed tracing and structured logging for .NET 10 web and service workloads when you require consistent telemetry for debugging, monitoring, and operational readiness across requests and dependencies.