configuring-opentelemetry-dotnet

Configure OpenTelemetry tracing, metrics, and logging for ASP.NET Core applications.

Updated Aug 26, 2024
One-click install
npx skills add https://github.com/FabienDehopre/my-netatmo-24 --skill configuring-opentelemetry-dotnet-fabiendehopre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configuring-opentelemetry-dotnet
Source: https://github.com/FabienDehopre/my-netatmo-24/tree/main/.agents/skills/configuring-opentelemetry-dotnet
Command: npx skills add https://github.com/FabienDehopre/my-netatmo-24 --skill configuring-opentelemetry-dotnet-fabiendehopre

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps ASP.NET Core developers implement end-to-end observability by configuring distributed tracing, metrics, and logging correlation with OpenTelemetry instead of building monitoring integrations manually.

Core Features & Use Cases

  • OpenTelemetry Setup: Configure the.NET OpenTelemetry SDK with traces, metrics, logs, OTLP exporters, and service resources.
  • Custom Instrumentation: Create business operation spans, custom metrics, and distributed context propagation for complex applications.
  • Use Case: Instrument a microservice-based ASP.NET Core application so teams can trace requests across services, monitor performance, and correlate logs with traces.

Quick Start

Use the OpenTelemetry skill to configure tracing, metrics, and logging export for my ASP.NET Core application.

Frequently Asked Questions about configuring-opentelemetry-dotnet

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

FAQPage Schema
How do I configure OpenTelemetry distributed tracing in an ASP.NET Core application?

Configure OpenTelemetry distributed tracing in an ASP.NET Core application by setting up the .NET SDK with matching ActivitySource registrations, OTLP exporters, and service resources to export telemetry signals for cross-service request tracking.

What is needed to export custom metrics and logs using the OpenTelemetry SDK in .NET?

Exporting custom metrics and logs using the OpenTelemetry SDK in .NET requires configuring Meter registrations alongside OTLP exporters and establishing logging correlation to validate the exported telemetry signals.

Does OpenTelemetry instrumentation for ASP.NET Core support trace context propagation across microservices?

OpenTelemetry instrumentation for ASP.NET Core supports trace context propagation across microservices by configuring distributed tracing within the .NET SDK, allowing teams to trace requests and correlate logs across service boundaries.

Can I create custom spans for business operations with OpenTelemetry in .NET?

You can create custom spans for business operations with OpenTelemetry in .NET by registering an ActivitySource and applying custom instrumentation to generate spans that trace specific application workflows.

What's the best way to correlate logs with traces in a .NET microservice architecture?

The best way to correlate logs with traces in a .NET microservice architecture is implementing OpenTelemetry observability with logging correlation, distributed tracing, and OTLP exporters to link log entries to specific trace spans.

Why do I need to match ActivitySource and Meter registrations when setting up OpenTelemetry in .NET?

Matching ActivitySource and Meter registrations when setting up OpenTelemetry in .NET is required to validate exported telemetry signals, ensuring the SDK correctly captures and exports the custom spans and metrics generated by the application.