Skip to content

Drop elasticsearch instrumentation#4759

Merged
xrmx merged 3 commits into
open-telemetry:mainfrom
xrmx:drop-elasticsearch-instrumentation
Jul 1, 2026
Merged

Drop elasticsearch instrumentation#4759
xrmx merged 3 commits into
open-telemetry:mainfrom
xrmx:drop-elasticsearch-instrumentation

Conversation

@xrmx

@xrmx xrmx commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

The ElasticSearch Python client has a native OTel instrumentation since 8.13, released in 2014. Since January 2026 elasticsearch 7 is not supported anymore and so every supported client have OTel support and we can drop our instrumentation.

Fixes #4716
Closes #1205
Closes #2542
Closes #2021
Closes #1633
Closes #3034

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

The ElasticSearch Python client has a native OTel instrumentation since
8.13, released in 2014. Since January 2026 elasticsearch 7 is not
supported anymore and so every supported client have OTel support and we
can drop our instrumentation.
@xrmx
xrmx requested a review from a team as a code owner June 30, 2026 08:20

@42Questions 42Questions left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, changelog format

Comment thread .changelog/4759.removed Outdated
Comment thread .changelog/4759.removed Outdated
@xrmx
xrmx enabled auto-merge July 1, 2026 07:25
@xrmx
xrmx added this pull request to the merge queue Jul 1, 2026
Merged via the queue into open-telemetry:main with commit 7464e46 Jul 1, 2026
748 checks passed
@xrmx
xrmx deleted the drop-elasticsearch-instrumentation branch July 1, 2026 07:34
chalin added a commit to open-telemetry/opentelemetry.io that referenced this pull request Jul 10, 2026
- Points the BMC Helix vendor URL at the current docs.helixops.ai Enabling page (aiops254), replacing the dead docs.bmc.com/244 link.
- Drops the Python Elasticsearch instrumentation registry entry; upstream removed the package in open-telemetry/opentelemetry-python-contrib#4759 now that the Elastic client has native OTel support (native entry remains).
- Refreshes static/refcache.json after those source changes.
basti1302 added a commit to dash0hq/dash0-operator that referenced this pull request Jul 21, 2026
The package was dropped upstream in the 0.65b0 release since all supported
elasticsearch versions now have native OpenTelemetry instrumentation, so no
0.65b0 version exists on PyPI.

See open-telemetry/opentelemetry-python-contrib#4759
liustve added a commit to aws-observability/aws-otel-python-instrumentation that referenced this pull request Jul 22, 2026
Automated update of OpenTelemetry dependencies.

**Build Status:** ❌
[failure](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/29554721211)

**Updated versions:**
- [OpenTelemetry
Python](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.44.0):
1.44.0
- [OpenTelemetry
Contrib](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.65b0):
0.65b0
-
[opentelemetry-sdk-extension-aws](https://pypi.org/project/opentelemetry-sdk-extension-aws/2.1.0/):
2.1.0
-
[opentelemetry-propagator-aws-xray](https://pypi.org/project/opentelemetry-propagator-aws-xray/1.0.2/):
1.0.2
-
[opentelemetry-instrumentation-openai-agents-v2](https://pypi.org/project/opentelemetry-instrumentation-openai-agents-v2/0.1.0/):
0.1.0

**Upstream releases with breaking changes:**
Note: the mechanism to detect upstream breaking changes is not perfect.
Be sure to check all new releases and understand if any additional
changes need to be addressed.

**opentelemetry-python:**
- [Version
1.44.0/0.65b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.44.0)

**opentelemetry-python-contrib:**
- [Version
1.44.0/0.65b0](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.65b0)

*Description of changes:*

- Drops the `opentelemetry-instrumentation-elasticsearch` runtime
dependency (from `pyproject.toml`, the lite-mode instrumentor map, and
the nightly bot's `CONTRIB_DEPS` allowlist), removed entirely upstream
now that all supported `elasticsearch` versions ship native OTel
instrumentation:

open-telemetry/opentelemetry-python-contrib#4759

- Migrates the three Events API call sites (`llo_handler.py`,
`debugger/_snapshot_otlp_emitter.py`,
`aws_opentelemetry_configurator._init_logging`) to emit `LogRecord` with
the `event_name` field via the Logs API, after upstream removed the
deprecated Events API/SDK (`opentelemetry._events` /
`opentelemetry.sdk._events`):
  open-telemetry/opentelemetry-python#5293
To keep the OTLP wire shape byte-identical to v0.18.0 for downstream
consumers, the migration explicitly preserves the two things the old
`Event` class auto-injected: the `event.name` attribute (which the GenAI
E2E `CWLogValidator` asserts on) and `severity_number=INFO`. Verified by
encoding both versions' output through the OTLP proto encoder and
diffing — the only deltas are the additive top-level `eventName` field
and SDK-generated resource metadata (`telemetry.sdk.version`,
`service.instance.id`).

- Implements `force_flush` on `CompactConsoleLogRecordExporter`,
required after upstream added it as an abstract method on the
`LogRecordExporter` ABC (instantiation otherwise fails with
`TypeError`):
  open-telemetry/opentelemetry-python#5294

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Eric Zhang <[email protected]>
Co-authored-by: Steve Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

4 participants