Commit d7f3915
fix(webapp): emit mollifier drainer LOG event as marker, not back-dated bar
engine.trigger rewrites the run's root span at materialisation (adopts
the synth root via traceId/spanId carryover but updates start_time to
"now"). A back-dated LOG event with startTime = bufferedAt landed
before that root start and got clipped from the trace tree —
persisted in ClickHouse but invisible to the admin viewing the page.
Emit it as a zero-duration marker AT materialisation time instead,
matching the [engine] QUEUED / PENDING_EXECUTING pattern. The
historical window is preserved in metadata so admins can still read
bufferedAt / dwellMs / attempts off the span detail pane.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a1f6c3a commit d7f3915
2 files changed
Lines changed: 31 additions & 20 deletions
File tree
- apps/webapp
- app/v3/mollifier
- test
Lines changed: 22 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
233 | 242 | | |
234 | 243 | | |
235 | 244 | | |
236 | | - | |
| 245 | + | |
237 | 246 | | |
238 | 247 | | |
239 | 248 | | |
| |||
244 | 253 | | |
245 | 254 | | |
246 | 255 | | |
247 | | - | |
248 | | - | |
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
| 511 | + | |
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
| |||
0 commit comments