Commit ceaf8ff
committed
fix(telemetry): resolve race conditions, duplicate turns, and consent defaults
- Rewrite collector to Instance.state-scoped with dataLevel filtering and
messageId deduplication to prevent duplicate turn finalizations
- Fix integration user-message race by retrying after 50ms when parts are
empty; use MessageV2.Event.Updated with time.completed instead of
step-finish; clean up turnStartTimes entries; add SIGTERM/beforeExit flush
- Fix Session.Event.Diff handler to use Snapshot.FileDiff shape (file,
additions, deletions) instead of non-existent type/hunks/path fields
- Rewrite consent to default OFF until explicit opt-in; add setLocalConsent
and loadLocalConsent for KV store integration; add CODEQ_DISABLE_TELEMETRY
env var kill switch via Flag namespace
- Export setConsent/loadConsent from telemetry barrel1 parent 2710913 commit ceaf8ff
5 files changed
Lines changed: 311 additions & 421 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments