$npx skillfedfor your agent

opentelemetry-instrumentation-elasticsearch

OpenTelemetry elasticsearch instrumentation

With conditionsPyPI MonitoringReleased Jun 20263.5M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opentelemetry_instrumentation_elasticsearch-0.64b0-py3-none-any.whl
v0.64b0 · released 2026-06-24 · Python >=3.10 · 4 runtime deps: opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt

Yes, if you already use OpenTelemetry and the elasticsearch library. The package is actively maintained, has no known vulnerabilities, and low install friction. It is in beta (0.64b0) but widely used (top 5000 PyPI packages). Install it only if you have an OpenTelemetry collector or exporter configured; without one, instrumentation will run but produce no actionable output.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.10; elasticsearch library must be installed separately for instrumentation to take effect.
  • Low friction installation with four stable runtime dependencies (opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt).
  • Package is actively maintained with recent releases and no known vulnerabilities.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.

last release 2026-06-24 (51 days) · last repo commit 2026-08-14 · 1,086 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,508,006 downloads/mo, #2,597 on PyPI

Verify before relying

pip install opentelemetry-instrumentation-elasticsearch

from opentelemetry.instrumentation.elasticsearch import ElasticsearchInstrumentor

ElasticsearchInstrumentor().instrument()
  • Whether instrumentation works with all elasticsearch-py versions or has specific version constraints.
  • Performance overhead of tracing on typical Elasticsearch workloads.
  • Compatibility with specific OpenTelemetry exporters and backends.
Same gist for agents: .md · .json

What it is and what it does

This package integrates Elasticsearch query tracing into OpenTelemetry, the industry standard for distributed observability. When installed and activated, it automatically captures telemetry data from all Elasticsearch operations made through the elasticsearch library—query details, response times, and errors—and exports them to your configured OpenTelemetry backend. It's part of the broader OpenTelemetry ecosystem and works alongside other instrumentation packages to give you end-to-end visibility into your application's database interactions.

The package wraps the elasticsearch library using wrapt and relies on opentelemetry-instrumentation to handle the instrumentation lifecycle. It emits semantic conventions defined by opentelemetry-semantic-conventions, ensuring your traces follow industry standards. Installation is straightforward and it supports Python versions 3.10, 3.11, 3.12, 3.13, and 3.14.

Use it for

  • Trace Elasticsearch queries in microservices to identify slow or failing database operations across distributed systems.
  • Monitor Elasticsearch performance in production by exporting traces to a backend.
  • Debug application issues by correlating Elasticsearch query traces with logs and metrics from other instrumented services.
  • Analyze query patterns and latency distribution to optimize Elasticsearch usage and identify bottlenecks.
  • Ensure compliance and audit requirements by capturing detailed Elasticsearch operation telemetry.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you already use OpenTelemetry and the elasticsearch library.

The package is actively maintained, has no known vulnerabilities, and low install friction. It is in beta (0.64b0) but widely used (top 5000 PyPI packages). Install it only if you have an OpenTelemetry collector or exporter configured; without one, instrumentation will run but produce no actionable output.

Install

opentelemetry-instrumentation-elasticsearch on PyPI

Before you install

Low friction installation with four stable runtime dependencies (opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt). Package is actively maintained with recent releases and no known vulnerabilities.

Requires Python >=3.10; elasticsearch library must be installed separately for instrumentation to take effect.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.

Quickstart

pip install opentelemetry-instrumentation-elasticsearch

from opentelemetry.instrumentation.elasticsearch import ElasticsearchInstrumentor

ElasticsearchInstrumentor().instrument()

Verify before relying

  • Whether instrumentation works with all elasticsearch-py versions or has specific version constraints.
  • Performance overhead of tracing on typical Elasticsearch workloads.
  • Compatibility with specific OpenTelemetry exporters and backends.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
opentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionswrapt
MaintenanceActively maintained 51 days since the last release
Last repo commit
First released
Downloads3,508,006 / month, #2,597 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: opentelemetry_instrumentation_elasticsearch-0.64b0-py3-none-any.whl

Tags

Capabilities
elasticsearch tracing instrumentationopentelemetry elasticsearchdistributed tracing elasticsearchelasticsearch observabilityelasticsearch query tracingopentelemetry instrumentationelasticsearch monitoring
Topics
observabilitytracingelasticsearch

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “elasticsearch tracing instrumentation”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also opentelemetry-instrumentation-aws-lambda · opentelemetry-instrumentation-cassandra · elastic-opentelemetry · opentelemetry-instrumentation-remoulade · opentelemetry-instrumentation-sklearn · opentelemetry-instrumentation-aiohttp-client · opentelemetry-instrumentation-pymongo · opentelemetry-instrumentation-redis · opentelemetry-instrumentation-botocore · opentelemetry-instrumentation-starlette