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: docs/src/transforms.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,12 @@ chain:
34
34
name: "my-null-sink"
35
35
```
36
36
37
-
Sub-chains inside transforms (like Tee or ValkeyCache) use a named format with `name` and `transforms` keys:
37
+
Sub-chains inside transforms are configured as a bare list. The chain name is derived from the transform's `name` (ParallelMap appends an index), and Tee's `SubchainOnMismatch.name` can override the mismatch chain name.
38
38
39
39
```yaml
40
40
chain:
41
-
name: "my-sub-chain"
42
-
transforms:
43
-
- NullSink:
44
-
name: "sub-sink"
41
+
- NullSink:
42
+
name: "sub-sink"
45
43
```
46
44
47
45
## Transforms
@@ -606,7 +604,7 @@ Tee also exposes an optional HTTP API to switch which chain to use as the "resul
606
604
# behavior:
607
605
# SubchainOnMismatch:
608
606
# name: "mismatch-chain"
609
-
#transforms:
607
+
#chain:
610
608
# - QueryTypeFilter:
611
609
# name: "mismatch-filter"
612
610
# DenyList: [Read]
@@ -622,15 +620,13 @@ Tee also exposes an optional HTTP API to switch which chain to use as the "resul
622
620
# The number of message batches that the tee can hold onto in its buffer of messages to send.
623
621
# If they arent sent quickly enough and the buffer is full then tee will drop new incoming messages.
624
622
buffer_size: 10000
625
-
# The sub chain to send duplicate messages through (named sub-chain format)
623
+
# The sub chain to send duplicate messages through
626
624
chain:
627
-
name: "tee-chain"
628
-
transforms:
629
-
- QueryTypeFilter:
630
-
name: "tee-filter"
631
-
DenyList: [Read]
632
-
- NullSink:
633
-
name: "tee-sink"
625
+
- QueryTypeFilter:
626
+
name: "tee-filter"
627
+
DenyList: [Read]
628
+
- NullSink:
629
+
name: "tee-sink"
634
630
```
635
631
636
632
This transform emits a metrics [counter](user-guide/observability.md#counter) named `tee_dropped_messages` and the label `chain` as `Tee`.
0 commit comments