Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated Dev UI interface to "log" (and replay/execute?) Hibernate queries (ORM or Search) #39584

Open
yrodiere opened this issue Mar 20, 2024 · 3 comments
Labels
area/dev-ui area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search kind/enhancement New feature or request

Comments

@yrodiere
Copy link
Member

yrodiere commented Mar 20, 2024

Description

When developing, It can be quite useful to know what exactly was sent to the database or, in the case of Hibernate Search, to Elasticsearch.

Currently, the only options to do so are through logs.

I think a dedicated Dev UI interface could increase developer joy significantly, especially if we introduce additional features. A few that come to mind (though we may not end up implementing all of them):

  • More user-friendly display: e.g. show SQL and bind parameter values next to each other, instead of in separate log lines
  • Easy export: "copy" buttons, e.g. for Elasticsearch in a format suitable for pasting into Kibana (see also Kibana/OpenSearch Dashboards dev services #39582)
  • Replay: re-run SQL or Elasticsearch requests, possibly after a manual edit, and display results
  • Context: show the stack trace that led to a particular statement/request. Or maybe just rely on some OpenTelemetry tracing integration?
  • Timing: how long did a given request take?
  • Search: filter by endpoint, sort by query time, ... Though that could require rather heavy infrastructure.

Implementation ideas

No response

@yrodiere yrodiere added kind/enhancement New feature or request area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search area/dev-ui labels Mar 20, 2024
Copy link

quarkus-bot bot commented Mar 20, 2024

/cc @cescoffier (devui), @phillip-kruger (devui)

@gsmet
Copy link
Member

gsmet commented Mar 20, 2024

That would indeed be awesome.

If you can get the query time there too, I think it could have even more value.

@yrodiere yrodiere changed the title Dedicated Dev UI interface to list Hibernate requests (ORM or Search) Dedicated Dev UI interface to list Hibernate queries (ORM or Search) Mar 20, 2024
@yrodiere yrodiere changed the title Dedicated Dev UI interface to list Hibernate queries (ORM or Search) Dedicated Dev UI interface to "log" executed Hibernate queries (ORM or Search) Apr 29, 2024
@yrodiere yrodiere changed the title Dedicated Dev UI interface to "log" executed Hibernate queries (ORM or Search) Dedicated Dev UI interface to "log" (and replay/execute?) Hibernate queries (ORM or Search) Oct 1, 2024
@yrodiere
Copy link
Member Author

yrodiere commented Feb 7, 2025

See #43618 for the Agroal (SQL) implementation, which will likely be similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-ui area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants