2.0.1 • Published 4 months ago

@tq-bit/node-red-contrib-trace-messages v2.0.1

Weekly downloads
-
License
Apache License 2....
Repository
-
Last release
4 months ago

Node Red message trace

This module adds two debug nodes to your node-red instance. Both are meant to create a trace from how the message went through your flows. This is especially useful when trying to debug bigger flows.

The idea is as follows:

  • Each time a message starts to flow, a transaction is created
  • This transaction starts with the first node the message passes and ends with the final one
  • Each time, right before the message is passed ahead to the next node, a snapshot is created
  • This snapshot shows the current state of the flow right before the message was passed ahead
  • By looking at transactions and snapshots, you can see how the message went through your flows

By looking at these transactions and snapshots, you're able to keep track of your flow's state.

Node

npm.io

Usage

Depending on your needs, draw one or both nodes into your flow. Each time a preDeliver hook is triggered, they will start to create a snapshot or build up a transaction

  • The snapshot node will send one message every time any node sends a message
  • The transaction will send once a flow ends. This means when a node has no next node connected to it.

You can either analyze these messages one by one or use a dedicated software to store and display them.

Example transaction

Example Snapshot

Support and Feedback

If you encounter any issues or have any feedback regarding the Node-RED SSE Package, please feel free to open an issue on the package's GitHub repository. I appreciate your feedback and will do my best to address any problems or feature requests.

License

The Node-RED SSE Package is released under the Apache 2.0 license. Please refer to the license file in the package repository for more information.

2.0.1

4 months ago

2.0.0

4 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.0.1

9 months ago