-
Notifications
You must be signed in to change notification settings - Fork 84
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
Report Hydra head transaction history when closing head. #1467
Comments
I think Hydra node logs could provide the metrics you are looking for already? Upon each valid transaction we output |
This feature request is to provide standardization around posting these metrics publicly on-chain in an efficient manner. Substantial work will be performed within Hydra and publishing a summary would permit dashboards to highlight the success of Hydra beyond number of instantiations.
Agreed. Was simply using it for illustration purposes. Hopefully this discussion with folks more familiar with Hydra can suggest other meaningful metrics that could be of interest and provide a generic enough function to meet current and future metric ideas. Sebastian and Arnaud indicated in Discord this would be a good thread to initiate on GH so with their enthusiasm I created this |
Thanks for sharing this idea @StakeWithPride FWIW there is already a basic prometheus monitor in place. Right now it allows to consume transaction confirmation times and number of txs IIRC. See https://hydra.family/head-protocol/docs/how-to/operating-hydra#monitoring for details. With #183 we thought it might be good to adopt the open-telemetry approach which sounds a lot the standardization you would be interested as well. What is new, is the idea of putting aggregated metrics on chain. Why would we want to do this? I would love to see this or #183 progress as I think the metrics story is not very good with hydra right now. Is there something we can learn from the |
For me, mainly to enable representing the work done off-chain by Hydra. e.g. TPS reports Imagine adding up all the work produced by state-channels, ZK, L2s, partnerchains, etc. Here's an example of such a request: https://x.com/oravecpeter/status/1825282864382136569 I suspect other similar requests and new use cases will surface. |
Why
Provide developers the ability to capture rich telemetry.
What
The original idea was to be able to track TPS by self-reporting the count of transactions and the period over which they occurred.
There are probably other use cases and applications that developers will want so probably best we keep reporting malleable. Should reporting be optional? Is an honor system used be having only one party report or is the metric signed by all parties? What else should we be discussing?
How
The ask is to start a discussion about what sort of transaction history could be reported upon closing the head.
The text was updated successfully, but these errors were encountered: