[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-elastic-observability-edot-python-instrument":3,"mdc-67n6jz-key":34,"related-org-elastic-observability-edot-python-instrument":346,"related-repo-elastic-observability-edot-python-instrument":518},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"observability-edot-python-instrument","instrument Python applications with EDOT","Instrument a Python application with the Elastic Distribution of OpenTelemetry (EDOT) Python agent for automatic tracing, metrics, and logs. Use when adding observability to a Python service that has no existing APM agent.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"elastic","Elastic","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Felastic.png",[12,16,19,20],{"name":13,"slug":14,"type":15},"Observability","observability","tag",{"name":17,"slug":18,"type":15},"OpenTelemetry","opentelemetry",{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"Python","python",531,"https:\u002F\u002Fgithub.com\u002Felastic\u002Fagent-skills","2026-07-12T07:47:19.789904",null,41,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"Official Elastic Skills","https:\u002F\u002Fgithub.com\u002Felastic\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fplugins\u002Fobservability\u002Fskills\u002Fedot-python-instrument","---\nname: observability-edot-python-instrument\ndescription: >\n  Instrument a Python application with the Elastic Distribution of OpenTelemetry (EDOT)\n  Python agent for automatic tracing, metrics, and logs. Use when adding observability\n  to a Python service that has no existing APM agent.\nmetadata:\n  author: elastic\n  version: 0.1.0\n---\n\n# EDOT Python Instrumentation\n\nRead the setup guide before making changes:\n\n- [EDOT Python setup](https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Fopentelemetry\u002Fedot-sdks\u002Fpython\u002Fsetup)\n- [EDOT Python configuration](https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Fopentelemetry\u002Fedot-sdks\u002Fpython\u002Fconfiguration)\n- [OpenTelemetry Python auto-instrumentation](https:\u002F\u002Fopentelemetry.io\u002Fdocs\u002Fzero-code\u002Fpython\u002F)\n\n## Guidelines\n\n1. Install `elastic-opentelemetry` via pip (add to `requirements.txt` or equivalent)\n1. Run `edot-bootstrap --action=install` during image build to install auto-instrumentation packages for detected\n   libraries\n1. Wrap the application entrypoint with `opentelemetry-instrument` — e.g. `opentelemetry-instrument gunicorn app:app` or\n   `opentelemetry-instrument python app.py`. Without this, no telemetry is collected\n1. Set exactly three required environment variables:\n   - `OTEL_SERVICE_NAME`\n   - `OTEL_EXPORTER_OTLP_ENDPOINT` — must be the **managed OTLP endpoint** or **EDOT Collector** URL. Never use an APM\n     Server URL (no `apm-server`, no `:8200`, no `\u002Fintake\u002Fv2\u002Fevents`)\n   - `OTEL_EXPORTER_OTLP_HEADERS` — `\"Authorization=ApiKey \u003Ckey>\"` or `\"Authorization=Bearer \u003Ctoken>\"`\n1. Do NOT set `OTEL_TRACES_EXPORTER`, `OTEL_METRICS_EXPORTER`, or `OTEL_LOGS_EXPORTER` — the defaults are already\n   correct\n1. Do NOT add code-level SDK setup (no `TracerProvider`, no `configure_azure_monitor`, etc.) —\n   `opentelemetry-instrument` handles everything\n1. Never run both classic `elastic-apm` and EDOT on the same application\n\n## Examples\n\nSee the [EDOT Python setup guide](https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Fopentelemetry\u002Fedot-sdks\u002Fpython\u002Fsetup) for\ncomplete examples.\n",{"data":35,"body":38},{"name":4,"description":6,"metadata":36},{"author":8,"version":37},"0.1.0",{"type":39,"children":40},"root",[41,50,56,93,100,327,333],{"type":42,"tag":43,"props":44,"children":46},"element","h1",{"id":45},"edot-python-instrumentation",[47],{"type":48,"value":49},"text","EDOT Python Instrumentation",{"type":42,"tag":51,"props":52,"children":53},"p",{},[54],{"type":48,"value":55},"Read the setup guide before making changes:",{"type":42,"tag":57,"props":58,"children":59},"ul",{},[60,73,83],{"type":42,"tag":61,"props":62,"children":63},"li",{},[64],{"type":42,"tag":65,"props":66,"children":70},"a",{"href":67,"rel":68},"https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Fopentelemetry\u002Fedot-sdks\u002Fpython\u002Fsetup",[69],"nofollow",[71],{"type":48,"value":72},"EDOT Python setup",{"type":42,"tag":61,"props":74,"children":75},{},[76],{"type":42,"tag":65,"props":77,"children":80},{"href":78,"rel":79},"https:\u002F\u002Fwww.elastic.co\u002Fdocs\u002Freference\u002Fopentelemetry\u002Fedot-sdks\u002Fpython\u002Fconfiguration",[69],[81],{"type":48,"value":82},"EDOT Python configuration",{"type":42,"tag":61,"props":84,"children":85},{},[86],{"type":42,"tag":65,"props":87,"children":90},{"href":88,"rel":89},"https:\u002F\u002Fopentelemetry.io\u002Fdocs\u002Fzero-code\u002Fpython\u002F",[69],[91],{"type":48,"value":92},"OpenTelemetry Python auto-instrumentation",{"type":42,"tag":94,"props":95,"children":97},"h2",{"id":96},"guidelines",[98],{"type":48,"value":99},"Guidelines",{"type":42,"tag":101,"props":102,"children":103},"ol",{},[104,126,139,168,258,287,314],{"type":42,"tag":61,"props":105,"children":106},{},[107,109,116,118,124],{"type":48,"value":108},"Install ",{"type":42,"tag":110,"props":111,"children":113},"code",{"className":112},[],[114],{"type":48,"value":115},"elastic-opentelemetry",{"type":48,"value":117}," via pip (add to ",{"type":42,"tag":110,"props":119,"children":121},{"className":120},[],[122],{"type":48,"value":123},"requirements.txt",{"type":48,"value":125}," or equivalent)",{"type":42,"tag":61,"props":127,"children":128},{},[129,131,137],{"type":48,"value":130},"Run ",{"type":42,"tag":110,"props":132,"children":134},{"className":133},[],[135],{"type":48,"value":136},"edot-bootstrap --action=install",{"type":48,"value":138}," during image build to install auto-instrumentation packages for detected\nlibraries",{"type":42,"tag":61,"props":140,"children":141},{},[142,144,150,152,158,160,166],{"type":48,"value":143},"Wrap the application entrypoint with ",{"type":42,"tag":110,"props":145,"children":147},{"className":146},[],[148],{"type":48,"value":149},"opentelemetry-instrument",{"type":48,"value":151}," — e.g. ",{"type":42,"tag":110,"props":153,"children":155},{"className":154},[],[156],{"type":48,"value":157},"opentelemetry-instrument gunicorn app:app",{"type":48,"value":159}," or\n",{"type":42,"tag":110,"props":161,"children":163},{"className":162},[],[164],{"type":48,"value":165},"opentelemetry-instrument python app.py",{"type":48,"value":167},". Without this, no telemetry is collected",{"type":42,"tag":61,"props":169,"children":170},{},[171,173],{"type":48,"value":172},"Set exactly three required environment variables:\n",{"type":42,"tag":57,"props":174,"children":175},{},[176,185,234],{"type":42,"tag":61,"props":177,"children":178},{},[179],{"type":42,"tag":110,"props":180,"children":182},{"className":181},[],[183],{"type":48,"value":184},"OTEL_SERVICE_NAME",{"type":42,"tag":61,"props":186,"children":187},{},[188,194,196,202,204,209,211,217,219,225,226,232],{"type":42,"tag":110,"props":189,"children":191},{"className":190},[],[192],{"type":48,"value":193},"OTEL_EXPORTER_OTLP_ENDPOINT",{"type":48,"value":195}," — must be the ",{"type":42,"tag":197,"props":198,"children":199},"strong",{},[200],{"type":48,"value":201},"managed OTLP endpoint",{"type":48,"value":203}," or ",{"type":42,"tag":197,"props":205,"children":206},{},[207],{"type":48,"value":208},"EDOT Collector",{"type":48,"value":210}," URL. Never use an APM\nServer URL (no ",{"type":42,"tag":110,"props":212,"children":214},{"className":213},[],[215],{"type":48,"value":216},"apm-server",{"type":48,"value":218},", no ",{"type":42,"tag":110,"props":220,"children":222},{"className":221},[],[223],{"type":48,"value":224},":8200",{"type":48,"value":218},{"type":42,"tag":110,"props":227,"children":229},{"className":228},[],[230],{"type":48,"value":231},"\u002Fintake\u002Fv2\u002Fevents",{"type":48,"value":233},")",{"type":42,"tag":61,"props":235,"children":236},{},[237,243,245,251,252],{"type":42,"tag":110,"props":238,"children":240},{"className":239},[],[241],{"type":48,"value":242},"OTEL_EXPORTER_OTLP_HEADERS",{"type":48,"value":244}," — ",{"type":42,"tag":110,"props":246,"children":248},{"className":247},[],[249],{"type":48,"value":250},"\"Authorization=ApiKey \u003Ckey>\"",{"type":48,"value":203},{"type":42,"tag":110,"props":253,"children":255},{"className":254},[],[256],{"type":48,"value":257},"\"Authorization=Bearer \u003Ctoken>\"",{"type":42,"tag":61,"props":259,"children":260},{},[261,263,269,271,277,279,285],{"type":48,"value":262},"Do NOT set ",{"type":42,"tag":110,"props":264,"children":266},{"className":265},[],[267],{"type":48,"value":268},"OTEL_TRACES_EXPORTER",{"type":48,"value":270},", ",{"type":42,"tag":110,"props":272,"children":274},{"className":273},[],[275],{"type":48,"value":276},"OTEL_METRICS_EXPORTER",{"type":48,"value":278},", or ",{"type":42,"tag":110,"props":280,"children":282},{"className":281},[],[283],{"type":48,"value":284},"OTEL_LOGS_EXPORTER",{"type":48,"value":286}," — the defaults are already\ncorrect",{"type":42,"tag":61,"props":288,"children":289},{},[290,292,298,299,305,307,312],{"type":48,"value":291},"Do NOT add code-level SDK setup (no ",{"type":42,"tag":110,"props":293,"children":295},{"className":294},[],[296],{"type":48,"value":297},"TracerProvider",{"type":48,"value":218},{"type":42,"tag":110,"props":300,"children":302},{"className":301},[],[303],{"type":48,"value":304},"configure_azure_monitor",{"type":48,"value":306},", etc.) —\n",{"type":42,"tag":110,"props":308,"children":310},{"className":309},[],[311],{"type":48,"value":149},{"type":48,"value":313}," handles everything",{"type":42,"tag":61,"props":315,"children":316},{},[317,319,325],{"type":48,"value":318},"Never run both classic ",{"type":42,"tag":110,"props":320,"children":322},{"className":321},[],[323],{"type":48,"value":324},"elastic-apm",{"type":48,"value":326}," and EDOT on the same application",{"type":42,"tag":94,"props":328,"children":330},{"id":329},"examples",[331],{"type":48,"value":332},"Examples",{"type":42,"tag":51,"props":334,"children":335},{},[336,338,344],{"type":48,"value":337},"See the ",{"type":42,"tag":65,"props":339,"children":341},{"href":67,"rel":340},[69],[342],{"type":48,"value":343},"EDOT Python setup guide",{"type":48,"value":345}," for\ncomplete examples.",{"items":347,"total":517},[348,367,384,399,416,428,438,453,465,480,491,504],{"slug":349,"name":349,"fn":350,"description":351,"org":352,"tags":353,"stars":364,"repoUrl":365,"updatedAt":366},"accessing-benchmark-results","retrieve and analyze Rally benchmark results","Retrieve Rally benchmark results from an external Elasticsearch metrics store. Use to list past races, get a single race's overall (per-task) results, chart a metric's trend across multiple runs, compare two races, or check whether a run converged — e.g. \"show me recent geonames races\", \"what's the service_time trend for nyc_taxis over the last 30 days?\", \"compare these two race-ids\". Applies when datastore.type = elasticsearch is set in ~\u002F.rally\u002Frally.ini.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[354,357,360,361],{"name":355,"slug":356,"type":15},"Analytics","analytics",{"name":358,"slug":359,"type":15},"Data Analysis","data-analysis",{"name":9,"slug":8,"type":15},{"name":362,"slug":363,"type":15},"Performance","performance",2027,"https:\u002F\u002Fgithub.com\u002Felastic\u002Frally","2026-07-12T07:46:38.54144",{"slug":368,"name":368,"fn":369,"description":370,"org":371,"tags":372,"stars":364,"repoUrl":365,"updatedAt":383},"developing-rally","develop and debug Rally source code","Work on Rally's own codebase, not running benchmarks with it. Use when setting up the dev environment, running Rally's tests or linters, navigating its source, debugging Rally's own code, or making changes to Rally itself.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[373,376,377,380],{"name":374,"slug":375,"type":15},"Debugging","debugging",{"name":9,"slug":8,"type":15},{"name":378,"slug":379,"type":15},"Engineering","engineering",{"name":381,"slug":382,"type":15},"Local Development","local-development","2026-07-12T07:46:35.976807",{"slug":385,"name":385,"fn":386,"description":387,"org":388,"tags":389,"stars":364,"repoUrl":365,"updatedAt":398},"running-benchmarks","run Rally benchmarks against Elasticsearch","Run Rally benchmarks (races) against Elasticsearch — an existing\u002Fexternal cluster or a Rally-provisioned distribution — and read the summary report. Use when running a race (any pipeline, track, challenge, target-hosts, or auth) or when interpreting throughput, latency, and service_time results.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[390,391,394,395],{"name":9,"slug":8,"type":15},{"name":392,"slug":393,"type":15},"Elasticsearch","elasticsearch",{"name":362,"slug":363,"type":15},{"name":396,"slug":397,"type":15},"Testing","testing","2026-07-12T07:46:37.277964",{"slug":400,"name":400,"fn":401,"description":402,"org":403,"tags":404,"stars":23,"repoUrl":24,"updatedAt":415},"cloud-access-management","manage Elastic Cloud organization access","Manage Elastic Cloud organization access: invite users, assign roles to Serverless projects, and create or revoke Cloud API keys. Use when granting, modifying, or auditing user access.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[405,408,409,412],{"name":406,"slug":407,"type":15},"Cloud","cloud",{"name":9,"slug":8,"type":15},{"name":410,"slug":411,"type":15},"Operations","operations",{"name":413,"slug":414,"type":15},"Permissions","permissions","2026-07-12T07:46:44.946285",{"slug":417,"name":417,"fn":418,"description":419,"org":420,"tags":421,"stars":23,"repoUrl":24,"updatedAt":427},"cloud-create-project","create Elastic Cloud Serverless projects","Creates Elastic Cloud Serverless projects (Elasticsearch, Observability, or Security) via the REST API, saves credentials to file, and bootstraps a scoped Elasticsearch API key. Use when creating a new serverless project, provisioning a search or observability environment, or spinning up a new Elastic Cloud project.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[422,423,426],{"name":406,"slug":407,"type":15},{"name":424,"slug":425,"type":15},"Deployment","deployment",{"name":392,"slug":393,"type":15},"2026-07-12T07:46:42.353362",{"slug":429,"name":429,"fn":430,"description":431,"org":432,"tags":433,"stars":23,"repoUrl":24,"updatedAt":437},"cloud-manage-project","manage Elastic Cloud Serverless projects","Manages existing Elastic Cloud Serverless projects: list, get, update, delete, reset credentials, resume, and load saved credentials. Connects to existing projects by resolving endpoints and acquiring scoped Elasticsearch API keys. Use when performing day-2 operations on serverless projects, connecting to an existing project, loading or resetting project credentials, or looking up project details.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[434,435,436],{"name":406,"slug":407,"type":15},{"name":392,"slug":393,"type":15},{"name":410,"slug":411,"type":15},"2026-07-12T07:46:41.097412",{"slug":439,"name":439,"fn":440,"description":441,"org":442,"tags":443,"stars":23,"repoUrl":24,"updatedAt":452},"cloud-network-security","manage Elastic Cloud network security","Manage Serverless network security (traffic filters): create, update, and delete IP filters and AWS PrivateLink VPC filters. Use when restricting network access or configuring private connectivity.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[444,445,446,449],{"name":406,"slug":407,"type":15},{"name":392,"slug":393,"type":15},{"name":447,"slug":448,"type":15},"Networking","networking",{"name":450,"slug":451,"type":15},"Security","security","2026-07-12T07:46:43.675992",{"slug":454,"name":454,"fn":455,"description":456,"org":457,"tags":458,"stars":23,"repoUrl":24,"updatedAt":464},"cloud-setup","configure Elastic Cloud authentication","Configures Elastic Cloud authentication and environment defaults. Use when setting up EC_API_KEY, configuring Cloud API access, or when another cloud skill requires credentials.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[459,462,463],{"name":460,"slug":461,"type":15},"Authentication","authentication",{"name":406,"slug":407,"type":15},{"name":392,"slug":393,"type":15},"2026-07-12T07:46:39.783105",{"slug":466,"name":466,"fn":467,"description":468,"org":469,"tags":470,"stars":23,"repoUrl":24,"updatedAt":479},"elasticsearch-audit","configure Elasticsearch security audit logs","Enable, configure, and query Elasticsearch security audit logs. Use when the task involves audit logging setup, event filtering, or investigating security incidents like failed logins.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[471,474,475,478],{"name":472,"slug":473,"type":15},"Audit","audit",{"name":392,"slug":393,"type":15},{"name":476,"slug":477,"type":15},"Logs","logs",{"name":450,"slug":451,"type":15},"2026-07-12T07:47:35.092599",{"slug":481,"name":481,"fn":482,"description":483,"org":484,"tags":485,"stars":23,"repoUrl":24,"updatedAt":490},"elasticsearch-authn","configure Elasticsearch authentication realms","Authenticate to Elasticsearch using native, file-based, LDAP\u002FAD, SAML, OIDC, Kerberos, JWT, or certificate realms. Use when connecting with credentials, choosing a realm, or managing API keys. Assumes the target realms are already configured.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[486,487,488,489],{"name":460,"slug":461,"type":15},{"name":9,"slug":8,"type":15},{"name":392,"slug":393,"type":15},{"name":450,"slug":451,"type":15},"2026-07-12T07:47:41.474547",{"slug":492,"name":492,"fn":493,"description":494,"org":495,"tags":496,"stars":23,"repoUrl":24,"updatedAt":503},"elasticsearch-authz","manage Elasticsearch RBAC and security roles","Manage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security. Use when creating users or roles, assigning privileges, or mapping external realms like LDAP\u002FSAML.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[497,498,499,502],{"name":9,"slug":8,"type":15},{"name":392,"slug":393,"type":15},{"name":500,"slug":501,"type":15},"RBAC","rbac",{"name":450,"slug":451,"type":15},"2026-07-12T07:47:36.394177",{"slug":505,"name":505,"fn":506,"description":507,"org":508,"tags":509,"stars":23,"repoUrl":24,"updatedAt":516},"elasticsearch-esql","query Elasticsearch data with ES|QL","Execute ES|QL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs, aggregate metrics, explore data, or create charts and dashboards from ES|QL results.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[510,511,512,513],{"name":355,"slug":356,"type":15},{"name":358,"slug":359,"type":15},{"name":392,"slug":393,"type":15},{"name":514,"slug":515,"type":15},"SQL","sql","2026-07-12T07:47:40.249533",86,{"items":519,"total":566},[520,527,533,539,546,552,559],{"slug":400,"name":400,"fn":401,"description":402,"org":521,"tags":522,"stars":23,"repoUrl":24,"updatedAt":415},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[523,524,525,526],{"name":406,"slug":407,"type":15},{"name":9,"slug":8,"type":15},{"name":410,"slug":411,"type":15},{"name":413,"slug":414,"type":15},{"slug":417,"name":417,"fn":418,"description":419,"org":528,"tags":529,"stars":23,"repoUrl":24,"updatedAt":427},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[530,531,532],{"name":406,"slug":407,"type":15},{"name":424,"slug":425,"type":15},{"name":392,"slug":393,"type":15},{"slug":429,"name":429,"fn":430,"description":431,"org":534,"tags":535,"stars":23,"repoUrl":24,"updatedAt":437},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[536,537,538],{"name":406,"slug":407,"type":15},{"name":392,"slug":393,"type":15},{"name":410,"slug":411,"type":15},{"slug":439,"name":439,"fn":440,"description":441,"org":540,"tags":541,"stars":23,"repoUrl":24,"updatedAt":452},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[542,543,544,545],{"name":406,"slug":407,"type":15},{"name":392,"slug":393,"type":15},{"name":447,"slug":448,"type":15},{"name":450,"slug":451,"type":15},{"slug":454,"name":454,"fn":455,"description":456,"org":547,"tags":548,"stars":23,"repoUrl":24,"updatedAt":464},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[549,550,551],{"name":460,"slug":461,"type":15},{"name":406,"slug":407,"type":15},{"name":392,"slug":393,"type":15},{"slug":466,"name":466,"fn":467,"description":468,"org":553,"tags":554,"stars":23,"repoUrl":24,"updatedAt":479},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[555,556,557,558],{"name":472,"slug":473,"type":15},{"name":392,"slug":393,"type":15},{"name":476,"slug":477,"type":15},{"name":450,"slug":451,"type":15},{"slug":481,"name":481,"fn":482,"description":483,"org":560,"tags":561,"stars":23,"repoUrl":24,"updatedAt":490},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[562,563,564,565],{"name":460,"slug":461,"type":15},{"name":9,"slug":8,"type":15},{"name":392,"slug":393,"type":15},{"name":450,"slug":451,"type":15},35]