Commit e95aa92
[ENG-6401] [components] attach path to console logs from sub-queries and sub-mutations (#30679)
when running a mutation or query as a subfunction, the logs should get accumulated with the parent function but they should have the subfunction's path attached. I considered a few ways of doing this ( #30593 and #30576 ) but found the one in this PR to work well:
enhance the `LogLine` enum so it has a recursive `LogLine::SubFunction` variant.
Some places, like node_executor and LogEvent, only deal with the non-recursive variant of `LogLine`, now called `LogLineStructured`, but most can have a full tree of log lines.
Sometimes we need to serialize the tree structure: in protobuf for funrun & usher, and in ConvexValue for `_session_requests`. Meanwhile sometimes we need to flatten the tree into an array: when we need to call `to_pretty_string()` for `RedactedLogLines`, and when we output `LogEvent`s.
GitOrigin-RevId: 7274b546885003b4be35072082d12773e3c48c5c1 parent c13443a commit e95aa92
File tree
20 files changed
+553
-268
lines changed- crates
- application/src
- cron_jobs
- common/src
- isolate/src
- environment/udf
- tests
- local_backend/src
- node_executor/src
- pb/protos
- npm-packages/system-udfs/convex/_system/frontend
20 files changed
+553
-268
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
176 | 185 | | |
177 | 186 | | |
178 | 187 | | |
179 | 188 | | |
180 | | - | |
| 189 | + | |
181 | 190 | | |
182 | 191 | | |
183 | 192 | | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
188 | 219 | | |
189 | 220 | | |
190 | 221 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 222 | + | |
203 | 223 | | |
204 | 224 | | |
205 | 225 | | |
| |||
209 | 229 | | |
210 | 230 | | |
211 | 231 | | |
212 | | - | |
| 232 | + | |
213 | 233 | | |
214 | 234 | | |
215 | 235 | | |
| |||
230 | 250 | | |
231 | 251 | | |
232 | 252 | | |
233 | | - | |
| 253 | + | |
234 | 254 | | |
235 | 255 | | |
236 | 256 | | |
| |||
256 | 276 | | |
257 | 277 | | |
258 | 278 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
265 | 290 | | |
266 | | - | |
267 | | - | |
| 291 | + | |
| 292 | + | |
268 | 293 | | |
269 | | - | |
270 | | - | |
| 294 | + | |
| 295 | + | |
271 | 296 | | |
272 | | - | |
273 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
274 | 310 | | |
275 | 311 | | |
276 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments