IntersectMBO / IntersectMBO/ouroboros-consensus
Wrap Consensus in a CRITICAL tracer
- Dominant language
- Haskell
- Stars
- 67
- Forks
- 43
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 43
Description
Although this sounds interesting, I think it might be somewhat difficult to achieve. We would have to trace a tracer everywhere to log these errors as critical, or have some kind of mutable global reference that we consult on critical errors.
I think it would be easier to wrap the Consensus function with a handler of exceptions that captures `ErrorCall` and prints it in a CRITICAL trace.
_Originally posted by @jasagredo in https://github.com/IntersectMBO/ouroboros-consensus/pull/1814#discussion_r2681847648_
Contributor guide
Research direction
Start by locating the Consensus function and the existing tracer handling for ErrorCall and CRITICAL messages. Determine how exceptions are currently captured and where the wrapper belongs; done means ErrorCall failures from Consensus are emitted through a CRITICAL trace without requiring tracing changes everywhere.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- blockchain, distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100