Open
Description
Specification
Some work has been done in js-logger for rolling out a custom implementation of tracing which supports streaming and potentially unending spans. (js-logger#47). We now need to use the tracing system in Polykey to gain observability during Polykey's runtime.
Obtaining observability helps debug resource leaks more easily, and given how frequently the seednodes shut down and polykey remains stuck in a stopping state, there are a lot of them. This is meant to simplify finding and fixing them.
Additional context
Tasks
- Start by monkey-patching tracer to plan out integration (async-init for lifecycles)
- Extract data and pipe it to a visualiser to see the spans and events
- Fully integrate tracer if the small pilot experiment was successful