Skip to content

feat(git): add observability for snapshot restore and serve paths#209

Draft
joshfriend wants to merge 1 commit intomainfrom
jfriend/snapshot-observability
Draft

feat(git): add observability for snapshot restore and serve paths#209
joshfriend wants to merge 1 commit intomainfrom
jfriend/snapshot-observability

Conversation

@joshfriend
Copy link
Contributor

Adds OTel metrics and structured logging to the snapshot restore and serve paths so we can understand cachew performance in production.

snapshot.Restore now returns a RestoreResult with bytes read and duration, which gets logged as structured fields on the "Mirror snapshot extracted" message. New OTel metrics track clone source (local/mirror/upstream), snapshot serve source (cache/live), along with duration, bytes, and throughput histograms — all scraped into Datadog via the existing openmetrics annotation on port 9102.

@joshfriend joshfriend force-pushed the jfriend/snapshot-observability branch 3 times, most recently from 3b691be to 9822a42 Compare March 20, 2026 17:30
Adds OTel metrics and structured logging to track how repositories are
populated on cachew pods (local/mirror/upstream) and how snapshots are
served to workstations (cache/live), including duration, bytes, and
throughput.
@joshfriend joshfriend force-pushed the jfriend/snapshot-observability branch from 9822a42 to 3e19650 Compare March 20, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant