opentelemetry

Configure OpenTelemetry tracing, metrics, and logs export via OTLP for .NET applications.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill opentelemetry-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opentelemetry
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/opentelemetry
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill opentelemetry-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenTelemetry removes the guesswork of debugging and performance tuning by giving you unified traces, metrics, and logs for .NET 10 applications.

Core Features & Use Cases

  • Three-signal observability: Configure traces, metrics, and logs via a single AddOpenTelemetry() setup and export through OTLP for backend-agnostic monitoring.
  • Custom traces and metrics: Add ActivitySource-based spans and instrument custom business metrics using IMeterFactory to avoid lifetime and leak issues.
  • Operational-ready configuration: Use OTEL_* environment variables for routing, service naming, and deployment control without code changes.
  • Aspire Dashboard integration: Run a local Aspire Dashboard to validate telemetry quickly during development.

Quick Start

Load the opentelemetry skill to set up OTLP exporting, register ActivitySource and meters, and configure tracing/metrics/logging to point to your collector or Aspire Dashboard.

Frequently Asked Questions about opentelemetry

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

FAQPage Schema
How do I configure OpenTelemetry in .NET to export traces, metrics, and logs via OTLP?

Configure OpenTelemetry in .NET by registering traces, metrics, and logs through a single AddOpenTelemetry() setup and using UseOtlpExporter() to export telemetry data via OTLP for backend-agnostic monitoring.

What is the correct way to create custom spans and business metrics in .NET?

Create custom spans and business metrics in .NET by registering ActivitySource-based spans for tracing and instrumenting custom metrics using IMeterFactory to avoid lifetime and leak issues.

Can I use OTEL environment variables to route .NET telemetry without changing code?

Yes, you can use OTEL_* environment variables for routing, service naming, and deployment control without code changes, enabling operational-ready configuration for your .NET telemetry pipeline.

How do I validate distributed tracing locally during .NET development?

Validate distributed tracing locally by running an Aspire Dashboard to quickly visualize and confirm OTLP telemetry export from your .NET application during development.

Why does my OpenTelemetry setup fail with conflicting exporters in .NET?

OpenTelemetry setups fail with conflicting exporters when multiple pipeline configurations overlap, requiring you to avoid conflicting exporter setups and ensure consistent configuration using AddOpenTelemetry() and UseOtlpExporter().

Do I need a null-safe pattern when using ActivitySource for distributed tracing in C#?

Yes, you need a null-safe Activity usage pattern when using ActivitySource for distributed tracing in C# to prevent runtime errors and ensure consistent span generation.