observability-edot-dotnet-migrate by elastic/agent-skills
npx skills add https://github.com/elastic/agent-skills --skill observability-edot-dotnet-migrate在进行更改前,请先阅读迁移指南:
Elastic.Apm.* NuGet 包(包括 Elastic.Apm.NetCoreAll)、移除 UseAllElasticApm() / AddAllElasticApm() 调用、从 appsettings.json 中移除 ElasticApm 配置节,以及所有 ELASTIC_APM_* 环境变量。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Elastic.OpenTelemetry 和 OpenTelemetry.Instrumentation.AspNetCore(针对 ASP.NET Core 应用)。IHostApplicationBuilder 上调用 builder.AddElasticOpenTelemetry()(在 Program.cs 或等效文件中)。没有这一步,将不会收集任何遥测数据。OTEL_SERVICE_NAME(替代 ELASTIC_APM_SERVICE_NAME / ElasticApm:ServiceName)OTEL_EXPORTER_OTLP_ENDPOINT — 必须是托管的 OTLP 端点或EDOT Collector URL。请不要重用旧的 ELASTIC_APM_SERVER_URLS 值。切勿使用 APM Server URL(不能包含 apm-server、:8200 端口或 /intake/v2/events 路径)。OTEL_EXPORTER_OTLP_HEADERS — 格式为 "Authorization=ApiKey <key>" 或 "Authorization=Bearer <token>"(替代 ELASTIC_APM_SECRET_TOKEN)。OTEL_TRACES_EXPORTER、OTEL_METRICS_EXPORTER 或 OTEL_LOGS_EXPORTER — 默认值已经是正确的。Elastic.Apm.*)和 EDOT。完整的示例请参阅 EDOT .NET 迁移指南。
每周安装量
111
代码仓库
GitHub 星标数
136
首次出现
9 天前
安全审计
已安装于
cursor103
opencode97
gemini-cli97
github-copilot97
codex97
amp96
Read the migration guide before making changes:
Elastic.Apm.* NuGet packages (including Elastic.Apm.NetCoreAll), UseAllElasticApm() / AddAllElasticApm() calls, the ElasticApm section from appsettings.json, and all ELASTIC_APM_* env varsElastic.OpenTelemetry and OpenTelemetry.Instrumentation.AspNetCore (for ASP.NET Core apps)builder.AddElasticOpenTelemetry() on the IHostApplicationBuilder (in Program.cs or equivalent). Without this, no telemetry is collectedOTEL_SERVICE_NAME (replaces ELASTIC_APM_SERVICE_NAME / ElasticApm:ServiceName)OTEL_EXPORTER_OTLP_ENDPOINT — must be the managed OTLP endpoint or EDOT Collector URL. Do NOT reuse the old ELASTIC_APM_SERVER_URLS value. Never use an APM Server URL (no apm-server, no :8200, no /intake/v2/events)OTEL_EXPORTER_OTLP_HEADERS — "Authorization=ApiKey <key>" or (replaces )OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER, or OTEL_LOGS_EXPORTER — the defaults are already correctElastic.Apm.*) and EDOT on the same applicationSee the EDOT .NET migration guide for complete examples.
Weekly Installs
111
Repository
GitHub Stars
136
First Seen
9 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
cursor103
opencode97
gemini-cli97
github-copilot97
codex97
amp96
Convex性能审计指南 - 诊断修复Convex应用性能问题与优化方案
14,200 周安装
Clawtributor:AI代理安全报告工具,开源社区威胁情报贡献平台
104 周安装
ripgrep (rg) 快速文本搜索工具:比 grep 快 100 倍的正则表达式搜索
104 周安装
Python PDF处理指南:合并、拆分、提取文本与表格,创建PDF文件
104 周安装
Shopify Polaris Web Components 使用指南:为 App Home 构建 UI 的完整教程
104 周安装
每日新闻摘要生成器 - AI自动汇总多源新闻,智能生成Markdown报告
104 周安装
Obsidian CLI 官方命令行工具使用指南:文件管理、搜索、属性与任务操作
104 周安装
"Authorization=Bearer <token>"ELASTIC_APM_SECRET_TOKEN