observability-edot-python-instrument by elastic/agent-skills
npx skills add https://github.com/elastic/agent-skills --skill observability-edot-python-instrument在进行更改前,请先阅读设置指南:
elastic-opentelemetry(添加到 requirements.txt 或等效文件)edot-bootstrap --action=install,为检测到的库安装自动插桩包opentelemetry-instrument 包装应用程序入口点——例如 opentelemetry-instrument gunicorn app:app 或 opentelemetry-instrument python app.py。没有这个,将无法收集遥测数据广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
OTEL_SERVICE_NAMEOTEL_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、configure_azure_monitor 等)— opentelemetry-instrument 会处理所有事情elastic-apm 和 EDOT完整示例请参阅 EDOT Python 设置指南。
每周安装量
100
代码仓库
GitHub 星标数
89
首次出现
7 天前
安全审计
已安装于
cursor91
opencode85
gemini-cli85
github-copilot85
codex85
amp84
Read the setup guide before making changes:
elastic-opentelemetry via pip (add to requirements.txt or equivalent)edot-bootstrap --action=install during image build to install auto-instrumentation packages for detected librariesopentelemetry-instrument — e.g. opentelemetry-instrument gunicorn app:app or opentelemetry-instrument python app.py. 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, no configure_azure_monitor, etc.) — opentelemetry-instrument handles everythingelastic-apm and EDOT on the same applicationSee the EDOT Python setup guide for complete examples.
Weekly Installs
100
Repository
GitHub Stars
89
First Seen
7 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
cursor91
opencode85
gemini-cli85
github-copilot85
codex85
amp84