Repository navigation
feat(o11y): trace how trip and vehicle lookups are served - #60
Merged
Merged
Conversation
The app sends the traceparent of its feed.board span with Subscribe (an optional field, so older builds keep working). The session runs its first poll under it, and later alarm polls link back to it. DepartureGateway.getBoards links to the call whose Golemio fetch it reused, whether it awaited that fetch or hit the cache it filled, and records how each board was served. Session polls record their trigger and outcome. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SDM2pVeSUgwNr2EUZAajLo
The shared outcome cache records on the caller's span whether the answer was a cache hit, another caller's in-flight fetch, or a fetch of its own (tablo.cache), the outcome, and when a stale answer stood in for a failed fetch. Hits and shared fetches link to the span that did the fetch. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SDM2pVeSUgwNr2EUZAajLo
|
🚀 Preview deployed: https://preview-60.tablo.run |
i11v
marked this pull request as ready for review
October 17, 2026 23:20
# Conflicts: # apps/worker/test/gateway.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ilnur · project thread
Stacked on #59 (it uses that PR's trace helpers); the base switches to
mainonce #59 merges.Before: a
TransitGateway.getTripVehicleorgetVehiclesspan looks the same whether it fetched from Golemio, waited on another request's fetch, hit the cache, or served stale data after upstream failed.After: those spans say which (
tablo.cache=hit/inflight/fetched), withtablo.outcome, andtablo.cache.stale+tablo.reasonwhen a stale answer stood in for a failed fetch. Hits and shared fetches link to the span that did the fetch, the same way #59 does for boards.How:
makeOutcomeCachekeeps the fetching span's ids with each in-flight claim and cache entry, and annotates and links the caller's span. Two new tests intransit.test.tscheck the attributes and links with a recording tracer (moved intotest/fakes.tsso both gateway suites share it).Generated by Claude Code