observability-edot-dotnet-instrument by elastic/agent-skills
npx skills add https://github.com/elastic/agent-skills --skill observability-edot-dotnet-instrument在进行更改前,请先阅读设置指南:
Elastic.OpenTelemetry 和 OpenTelemetry.Instrumentation.AspNetCore(针对 ASP.NET Core 应用)IHostApplicationBuilder 上调用 builder.AddElasticOpenTelemetry()(在 Program.cs 或等效文件中)。没有这一步,将不会收集任何遥测数据OTEL_SERVICE_NAME广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
OTEL_EXPORTER_OTLP_ENDPOINT — 必须是托管的 OTLP 端点或EDOT Collector URL。切勿使用 APM Server URL(不能包含 apm-server、:8200 或 /intake/v2/events)OTEL_EXPORTER_OTLP_HEADERS — "Authorization=ApiKey <key>" 或 "Authorization=Bearer <token>"OTEL_TRACES_EXPORTER、OTEL_METRICS_EXPORTER 或 OTEL_LOGS_EXPORTER — 默认值已经是正确的TracerProvider 或 MeterProvider — AddElasticOpenTelemetry() 会处理所有事情Elastic.Apm.*)和 EDOT完整示例请参阅 EDOT .NET 设置指南。
每周安装量
93
代码仓库
GitHub 星标数
89
首次出现
8 天前
安全审计
已安装于
cursor86
opencode80
gemini-cli80
github-copilot80
codex80
amp79
Read the setup guide before making changes:
Elastic.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_NAMEOTEL_EXPORTER_OTLP_ENDPOINT — must be the managed OTLP endpoint or EDOT Collector URL. Never use an APM Server URL (no apm-server, no :8200, no /intake/v2/events)OTEL_EXPORTER_OTLP_HEADERS — "Authorization=ApiKey <key>" or "Authorization=Bearer <token>"OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER, or OTEL_LOGS_EXPORTER — the defaults are already correctTracerProvider or MeterProvider — AddElasticOpenTelemetry() handles everythingElastic.Apm.*) and EDOT on the same applicationSee the EDOT .NET setup guide for complete examples.
Weekly Installs
93
Repository
GitHub Stars
89
First Seen
8 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
cursor86
opencode80
gemini-cli80
github-copilot80
codex80
amp79
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
104,900 周安装