configuring-opentelemetry-dotnet
仓库创建 2026年2月4日最近提交 18 小时前SkillHot 收录 20 天前
▸ 精选理由
提供 OTLP/Exporter 与自定义 span/metric 的实用配置与排错要点。
这个 Skill 做什么
在 ASP.NET Core 中配置 OpenTelemetry 的追踪、度量与日志导出。
在 ASP.NET Core 项目里接入 OpenTelemetry,统一导出分布式追踪、度量和日志到 OTLP、Jaeger、Prometheus 等后端。适合给微服务加可观测性、埋自定义 span/metric,或排查跨服务链路传递问题时使用。用 .NET SDK 能实现端到端的上下文传播和灵活的 exporter 配置,是调试分布式系统的利器。
▸ 展开 SKILL.md 英文原文
Configure OpenTelemetry distributed tracing, metrics, and logging in ASP.NET Core using the .NET OpenTelemetry SDK. Use when adding observability, setting up OTLP exporters, creating custom metrics/spans, or troubleshooting distributed trace correlation.
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-aspnetcore/skills/configuring-opentelemetry-dotnet/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-aspnetcore/skills/configuring-opentelemetry-dotnet/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Configuring OpenTelemetry in .NET ## When to Use - Adding distributed tracing to an ASP.NET Core application - Setting up OpenTelemetry exporters (OTLP is the primary protocol; Jaeger accepts OTLP natively; Prometheus OTLP ingestion requires explicit opt-in) - Creating custom metrics or trace spans for business operations - Troubleshooting distributed trace context propagation across services ## When Not to Use - The user wants application-level logging only (use ILogger, Serilog) - The user is using Application Insights SDK directly (different API) - The user needs APM with a commercial vendor's proprietary SDK ## Inputs | Input | Required | Description | |-------|----------|-------
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有