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

Allowing user to access report content directly rather than reading back from the file. #39

@hhellyer

Description

@hhellyer

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions