This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Description
We've had a feature request to allow users of the nodereport api to get the content of the nodereport file directly rather than having to read it back in from the file. This would make it easier to embed nodereport in other tools.
I'm going to take a look at this but up front I can think of some important limitations:
-
This will only work on API calls. We can't send the content of nodereport to a callback on a fatal error. (At that point Node.js isn't available for use.)
-
We will have to return all the content in one go, synchronously. If we stream it back bit by bit to a callback then code is running and changing the state of Node.js while we try and report it's state. The response from nodereport is a snapshot of a point in time.
I'm going to do some more investigation but any other feedback into the design would be welcome.