Skip to content

Integration for elasticsearch #932

Open

Description

@yoav-orca

Elasticsearch is a very popular database but doesn't have out of the box integration in sentry.

Please vote with 👍 on this post if you're interested in this.

Activity

  1. github-actions commented on Dec 23, 2021

    @github-actions
    Contributor

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

  2. antonpirker commented on Feb 28, 2022

    @antonpirker
    Contributor

    Hello @yoav-orca
    Thanks for making this proposal. If seems there is a little demand for this.
    I will put this issue on our internal backlog (but not with a lot of priority) We will do roadmap planning in the next couple of weeks and decide what we are going to tackle and what not.

    In the mean time: Pull Requests are always very welcomed! So if you want to start something, please do! I am also here to couch a little and help to bring stuff into shape so we can merge it.

  3. khoramism commented on Aug 31, 2022

    @khoramism

    so what happened guys, are you planning to add es?

  4. antonpirker commented on Sep 30, 2022

    @antonpirker
    Contributor

    Currently we have a lot of other thing on our plates, so ES will not come in the near future. But we are happy to accept PRs for this!

  5. andrecp commented on Oct 6, 2022

    @andrecp

    @antonpirker do you have any suggestions on from where to start?

  6. sl0thentr0py commented on Oct 7, 2022

    @sl0thentr0py
    Member

    hey @andrecp, you can look at the sqlalchemy integration as an example of a db span-recording instrumentation. You'll need to do something similar:

    • monkeypatch / hook into the query execute lifecycle
    • make spans from those queries
  7. 11 remaining items

  8. added and removed
    TriagedHas been looked at recently during old issue triage
    on Mar 20, 2026
  9. juneja-varun commented on Aug 15, 2026

    @juneja-varun

    Hi — I'd like to work on this. @antonpirker mentioned back in 2020 that PRs would be welcome, and I noticed there's still no elasticsearch integration in the current sentry_sdk/integrations/ tree, so the gap seems to still be open.

    Plan, modeled on the existing sqlalchemy.py/pymongo.py/redis/ integrations (per @sl0thentr0py's pointer above):

    • Instrument the official elasticsearch-py client's core request path (search/index/get/update/delete/bulk) to create spans with the standard db.* span attributes, following whichever of those existing integrations is the closest architectural match for a REST/HTTP-based client.
    • Respect send_default_pii/record_sql_params-equivalent settings for query body capture, consistent with how the other DB integrations handle payload scrubbing.
    • Add breadcrumbs on request completion, matching the existing integrations' breadcrumb category/data shape.
    • Tests under tests/integrations/elasticsearch/, following the existing integration test structure.

    Before I start: is there a currently preferred/supported version range for elasticsearch-py I should target (7.x, 8.x, the newer elasticsearch vs. legacy client split) ?

  10. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 15, 2026
  11. sentrivana commented on Aug 25, 2026

    @sentrivana
    Collaborator

    Hey @juneja-varun, thanks for your interest. We already have a community PR open for ES, so it's just about us finding the time to review it.

  12. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Aug 25, 2026
  13. juneja-varun commented on Aug 25, 2026

    @juneja-varun

    Thanks for the pointer @sentrivana — good to know it's already covered. I'll leave it with #6793 then, no need to duplicate the effort.

  14. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 25, 2026
  15. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions