You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-2Lines changed: 45 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,46 @@ You can run multiple monitoring servers simultaneously to monitor different flow
89
89
(monitor/stop-server server2)
90
90
```
91
91
92
+
### Filtering Proc State
93
+
94
+
It is common for the state to contain credentials and other sensitive information not intended to be displayed in the monitor. Filter predicates can optionally be provided when starting the monitor to filter the state data of flow procs.
95
+
96
+
```clojure
97
+
;; Create a flow
98
+
(defmy-flow (flow/create-flow ...))
99
+
100
+
;; Start the monitoring server
101
+
;;; In this example
102
+
;;; The :categorize proc will have the :salary value removed
103
+
;;; and :db-pass will be removed from all procs other than :categorize
It is valid to create a cyclical flow. The monitor displays procs without a `[to-pid inid]` at the top as roots. A circular flow will need to specify the intended root explicitly. A vector of :pid keywords can optionally be provided when starting the monitor to designate the root procs.
113
+
114
+
```clojure
115
+
116
+
(defflow-config {:procs ...
117
+
:conns [[[:a:out] [:b:in]]
118
+
[[:b:out] [:a:in]]]})
119
+
120
+
;; Create a flow
121
+
(defmy-flow (flow/create-flow flow-config))
122
+
123
+
;; Start the monitoring server specifying the root proc(s)
;; Inline static flow graphs also require the root to be specified for circular flows
129
+
(static/graph flow-config [:a])
130
+
```
131
+
92
132
## Static Flow Graph
93
133
94
134
Both [Cursive](https://cursive-ide.com/blog/cursive-2025.1.html) and [Calva](https://calva.io/flares/) support displaying HTML in the editor. A static graph can be generated from your flow-config and displayed in either of those editor environments with the following:
@@ -99,9 +139,12 @@ Both [Cursive](https://cursive-ide.com/blog/cursive-2025.1.html) and [Calva](htt
99
139
[clojure.core.async.flow :as flow])
100
140
101
141
;; Create a flow
102
-
(defmy-flow (flow/create-flow ...))
142
+
(defflow-config {:procs ...
143
+
:conns ...})
144
+
145
+
(graph flow-config) ; Takes a config not what is returned from create-flow
0 commit comments