Add Structured Logging And Metrics Foundation #4

Closed
opened 2026-04-26 15:22:28 -04:00 by dohertj2 · 3 comments
Owner

Source: $file
Milestone: $currentMilestone

Labels: area:gateway, type:infra, priority:p0

Deliverables:

  • logging scopes for session id, worker process id, correlation id, command
    method, and client identity,
  • counters/gauges/histograms for sessions, workers, commands, events, queues,
    and faults,
  • redaction helpers.

Acceptance criteria:

  • common logs include correlation fields,
  • API keys and credential-bearing values are not logged,
  • metrics can feed dashboard snapshots.

Tests:

  • log redaction,
  • metric update tests.
Source: $file Milestone: $currentMilestone Labels: `area:gateway`, `type:infra`, `priority:p0` Deliverables: - logging scopes for session id, worker process id, correlation id, command method, and client identity, - counters/gauges/histograms for sessions, workers, commands, events, queues, and faults, - redaction helpers. Acceptance criteria: - common logs include correlation fields, - API keys and credential-bearing values are not logged, - metrics can feed dashboard snapshots. Tests: - log redaction, - metric update tests.
dohertj2 added this to the gateway-foundation milestone 2026-04-26 15:22:28 -04:00
dohertj2 added the area:gatewaytype:infrapriority:p0 labels 2026-04-26 15:22:28 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:32 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:34 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:35 -04:00
Author
Owner

Worker 3 is taking this issue.

Branch: agent-3/issue-4-add-structured-logging-and-metrics-foundation
Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-3

Worker 3 is taking this issue. Branch: agent-3/issue-4-add-structured-logging-and-metrics-foundation Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-3
Author
Owner

Implemented and merged via PR #53: #53

Commit: 7dfec6dc8c
Updated branch head after origin/main merge/conflict resolution: a25f09e
Merge commit on main: 41ddd122a6
Branch: agent-3/issue-4-add-structured-logging-and-metrics-foundation

Verification:

  • dotnet build src\MxGateway.sln passed with 0 warnings and 0 errors after resolving conflicts with #3.
  • dotnet test src\MxGateway.sln passed: 34 total tests.

Acceptance criteria verified: logging scopes include common gateway correlation fields, redaction helpers avoid credential/value leakage, and metrics counters/gauges/histograms update through focused tests and can feed dashboard snapshots.

Implemented and merged via PR #53: https://gitea.dohertylan.com/dohertj2/mxaccessgw/pulls/53 Commit: 7dfec6dc8cfe47254eabe00cf096afda62960a2e Updated branch head after origin/main merge/conflict resolution: a25f09e Merge commit on main: 41ddd122a676837490b1435111584833b17eb17e Branch: agent-3/issue-4-add-structured-logging-and-metrics-foundation Verification: - dotnet build src\\MxGateway.sln passed with 0 warnings and 0 errors after resolving conflicts with #3. - dotnet test src\\MxGateway.sln passed: 34 total tests. Acceptance criteria verified: logging scopes include common gateway correlation fields, redaction helpers avoid credential/value leakage, and metrics counters/gauges/histograms update through focused tests and can feed dashboard snapshots.
Author
Owner

Milestone gateway-foundation complete.

Closed issues: #1, #2, #3, #4.
PRs merged: #51, #52, #54, #53.
Branches: agent-1/issue-1-scaffold-gateway-solution-and-projects, agent-1/issue-2-define-protobuf-contracts, agent-2/issue-3-add-gateway-configuration-and-validation, agent-3/issue-4-add-structured-logging-and-metrics-foundation.

Final verification commands run during issue verification:

  • dotnet build src\MxGateway.sln
  • dotnet test src\MxGateway.sln

Final merged main commit for this milestone: 41ddd122a6.

Milestone gateway-foundation complete. Closed issues: #1, #2, #3, #4. PRs merged: #51, #52, #54, #53. Branches: agent-1/issue-1-scaffold-gateway-solution-and-projects, agent-1/issue-2-define-protobuf-contracts, agent-2/issue-3-add-gateway-configuration-and-validation, agent-3/issue-4-add-structured-logging-and-metrics-foundation. Final verification commands run during issue verification: - dotnet build src\\MxGateway.sln - dotnet test src\\MxGateway.sln Final merged main commit for this milestone: 41ddd122a676837490b1435111584833b17eb17e.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: dohertj2/mxaccessgw#4