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

Spike: Decoupled instrumentation feasibility #1047

Closed
bhazzard opened this issue Apr 17, 2023 · 4 comments
Closed

Spike: Decoupled instrumentation feasibility #1047

bhazzard opened this issue Apr 17, 2023 · 4 comments
Assignees
Labels
👍 lgtm OCI Work exclusive to OCI team

Comments

@bhazzard
Copy link

Research what it would take to support instrumentation like DeepMind without it being directly integrated in the leap codebase.

Report findings back to: eosnetworkfoundation/product#151

@wanderingbort
Copy link
Contributor

Goal:

The primary output of this spike should be either:

  1. a process flow diagram of Block/Transaction/Action processing that includes explicit "hook" points sufficient to supply the current Deep mind implementation all of its required information. OR
  2. a ratrional argument that such a process would be as or more invasive than the existing code base.

Additional Thoughts:

There are some existing natural lifecycle hooks that are not currently explicit in the code base but may be usefully made explicit. Such as:

  • begin/end block
  • begin/end transaction
  • begin/end action
  • verify/reject authorization

As well as some concepts that could be abstracted. Such as:

  • write to "chain state"
  • read from "chain state"
  • write to console

There is a hope that with minor restructure of the core execution loop we can reduce the total number of "hooks" necessary to implement deep instrumentation.

This research spike can suggest such restructuring and is not limited to the existing code paths.

This is part of a larger initiative to investigate extracting libraries which could process transactions and/or blocks in service of both leap and another executable. This may include abstracting chain state storage and dependencies which will expose potential "hooks" etc.

@heifner heifner added the OCI Work exclusive to OCI team label Apr 19, 2023
@heifner
Copy link
Member

heifner commented Apr 24, 2023

@heifner
Copy link
Member

heifner commented Apr 25, 2023

@heifner
Copy link
Member

heifner commented May 9, 2023

Moved to eosnetworkfoundation/product#162

@heifner heifner closed this as completed May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 lgtm OCI Work exclusive to OCI team
Projects
Archived in project
Development

No branches or pull requests

3 participants