-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add otel spec #1
Conversation
- we will use base units for values (e.g. `bytes` over `kilobytes` and `seconds` over `milliseconds`) | ||
- we will _not_ include the unit in the name (there's a separate attribute for that, see code examples) | ||
|
||
TBD `meter` naming conventions (ie. `metrics.getMeter('RealPublicKernelCircuitSimulator')`) |
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.
Class name seems reasonable to me!
public async publicKernelCircuitSetup(input: PublicKernelCircuitPrivateInputs): Promise<PublicKernelCircuitPublicInputs> { | ||
// ... | ||
|
||
this.circuitSimulationMetric.record(duration / 1000, { |
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.
duration * 1000
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.
Sorry, forgot to get back to you on this. The latest recommendation is to use seconds over milliseconds for duration metrics. I've updated the proving code to return a durationMs
field instead of the unitless duration
we had before.
- [ ] AVM | ||
- [x] Sequencer | ||
- [ ] Fees | ||
- [ ] P2P Network |
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.
Can we plug the metrics into the P2P module? Would be great if we can.
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.
I'll look into getting some stats out of it
82a22cf
to
a7a4245
Compare
No description provided.