Skip to content

[self-care:server-go-logging] Extract adxtrace spool status summary with logging - #20214

Merged
mnkiefer merged 2 commits into
mainfrom
self-care/server-go-logging-adxtrace-inspect-3db3ed33caa0db8d
Nov 7, 2026
Merged

mnkiefer merged 2 commits into
mainfrom
self-care/server-go-logging-adxtrace-inspect-3db3ed33caa0db8d

Conversation

@mnkiefer

@mnkiefer mnkiefer commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Extracts the ledger-counting logic of adxtrace.Inspect into a pure summarizeLedger function and adds a debug log line for the inspection result. Behavior is unchanged.

Action: Reviewer should confirm summarizeLedger matches the previous inline counting and that go -C server vet ./... && go -C server test ./... pass.

Summary

  • Subsystem: server/internal/adxtrace/dataset.go (Inspect).
  • Diagnostic: one cao:adxtrace log after a successful inspection, with only integer counts and a boolean (frames, eligible, gaps, pending, degraded). Disabled by default; no records, identifiers, paths or errors are logged.
  • The current time is passed into summarizeLedger, so freshness is testable.
Tests and validation
  • New summarize_test.go: empty ledger, delivered/undelivered records, gaps, fresh/stale/not-ready mining, mining-enabled checked-without-mining, and the exact freshness boundary. Real values only, no mocks.
  • gofmt clean; go -C server vet ./... and go -C server test ./... pass.

Control Plane

Generated by SelfCare / Server Go Logging · copilot · auto · ~39 AIC · ⌖ ~1 AIC · ⊞ 14.9K · ◷

  • expires on Nov 11, 2026, 7:09 PM UTC

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mnkiefer
mnkiefer marked this pull request as ready for review November 7, 2026 04:30
@mnkiefer
mnkiefer requested a review from pelikhan as a code owner November 7, 2026 04:30
@mnkiefer

mnkiefer commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Resolve conflicts

…ogging-adxtrace-inspect-3db3ed33caa0db8d

# Conflicts:
#	server/internal/adxtrace/dataset.go

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>

Copilot AI commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

@copilot Resolve conflicts

Resolved the conflict with main and published merge commit 9a4de3b08. go -C server vet ./... and go -C server test ./... both pass.

@mnkiefer
mnkiefer merged commit 22fe891 into main Nov 7, 2026
30 checks passed
@mnkiefer
mnkiefer deleted the self-care/server-go-logging-adxtrace-inspect-3db3ed33caa0db8d branch November 7, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants