mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-29 13:12:39 +08:00

* Fix typo: _DEFALT_OP_NAME * Extract ES document ID from URL, put in attributes Elasticsearch creates URLs for index() and delete() before they hit perform_request(). This means there would be many unique span names containing unique document IDs, of the form 'Elasticsearch/indexname/_doc/documentid'. This extracts the document ID from the URL and replaces it with ':id', then puts it in the span's attributes. * Add TODO comment with link to issue * Add CHANGELOG entry * Don't use custom doc types, deprecated in ES 7 * Update tests to match instrumentation
OpenTelemetry elasticsearch Integration ======================================== |pypi| .. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-elasticsearch.svg :target: https://pypi.org/project/opentelemetry-instrumentation-elasticsearch/ This library allows tracing elasticsearch made by the `elasticsearch <https://elasticsearch-py.readthedocs.io/en/master/>`_ library. Installation ------------ :: pip install opentelemetry-instrumentation-elasticsearch References ---------- * `OpenTelemetry elasticsearch Integration <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/elasticsearch/elasticsearch.html>`_ * `OpenTelemetry Project <https://opentelemetry.io/>`_ * `OpenTelemetry Python Examples <https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples>`_