-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Simple event listener exposing data via HTTP #22158
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
Simple event listener exposing data via HTTP #22158
Conversation
hashhar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not a listener. How does one get the query id in the first place to query the listener?
|
query id is not a provide thing. eg from |
You can list ids - for one (there is a listing endpoint) . But you may also just know it - get it from on of the clients which sent queries to the server. |
06569b0 to
252ad90
Compare
|
@hashhar are we good with this one? |
I can see how this can work but don't see much utility in this over the other mechanisms. Specially since this adds a non-trivial amount of work on the coordinator (query events are large and serialization is costly).
Direct usecase here is to integrate query-completion-events in benchto which we use for performance testing of Trino. |
|
Thanks for the context, that's helpful and makes sense. |
|
Where are the docs for this and how does it compare to https://trino.io/docs/current/admin/event-listeners-http.html Something is messed up here .. Seems like its not really a event listener that it sends the events somewhere .. more like it just makes them available .. we need to document that somehow |
Yeah - it listens internally on event and exposes data over http. We may document it if you think it is useful for end-users. So far intention was mostly to be able to expose query completion events to benchto performance testing framework. |
|
hm .. we added it in the release notes @martint and @colebow but I am not sure this really is an event listener in our sense in the docs .. I am also not sure if there is a user facing scenario that warrants documenting this feature, but there might well be. I am inclined to add some minimal docs and leave the release notes entry as is. |
|
Haven't tried this yet, but I saw no authentication for these endpoints. |
|
This is meant to be used with benchto only - not user facing. See trinodb/benchto#73 |
So it should be removed from the release notes then.. since its an internal implementation detail. Right? |
|
IMO yes. |
fine by me too |
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: