@@ -114,7 +114,8 @@ _All components_ MUST emit a `ComponentEventsReceived` event that represents
114
114
the reception of Vector events from an upstream component.
115
115
116
116
- Emission
117
- - MUST emit immediately after creating or receiving Vector events.
117
+ - MUST emit immediately after creating or receiving Vector events, before modification or metadata
118
+ is added.
118
119
- Properties
119
120
- ` count ` - The count of Vector events.
120
121
- ` byte_size ` - The estimated JSON byte size of all events received.
@@ -130,9 +131,11 @@ the reception of Vector events from an upstream component.
130
131
131
132
#### ComponentBytesReceived
132
133
133
- * Sources* MUST emit a ` ComponentBytesReceived ` event immediately after receiving, decompressing
134
- and filtering bytes from the upstream source and before the creation of a Vector event.
134
+ * Sources* MUST emit a ` ComponentBytesReceived ` event that represent the reception of bytes.
135
135
136
+ - Emission
137
+ - MUST emit immediately after receiving, decompressing and filtering bytes from the upstream
138
+ source and before the creation of a Vector event.
136
139
- Properties
137
140
- ` byte_size `
138
141
- For UDP, TCP, and Unix protocols, the total number of bytes received from
@@ -155,13 +158,13 @@ and filtering bytes from the upstream source and before the creation of a Vector
155
158
156
159
#### ComponentBytesSent
157
160
158
- * Sinks* that send events downstream, MUST emit a ` ComponentBytesSent ` event immediately after
159
- sending bytes to the downstream target, if the transmission was successful. The reported bytes MUST
160
- be before compression.
161
-
162
- Note that for sinks that simply expose data, but don't delete the data after
163
- sending it, like the ` prometheus_exporter ` sink, SHOULD NOT publish this metric.
161
+ * Sinks* MUST emit a ` ComponentBytesReceived ` event that represent the transmission of bytes.
164
162
163
+ - Emission
164
+ - MUST emit a ` ComponentBytesSent ` event immediately after sending bytes to the downstream target,
165
+ if the transmission was successful. The reported bytes MUST be before compression.
166
+ - Note that sinks that simply expose data, but don't delete the data after sending it, like the
167
+ ` prometheus_exporter ` sink, SHOULD NOT emit this metric.
165
168
- Properties
166
169
- ` byte_size `
167
170
- For UDP, TCP, and Unix protocols, the total number of bytes placed on the
0 commit comments