Skip to content

feat(observability): implement end-to-end distributed tracing and unified file logging#9

Merged
rust17 merged 3 commits intomasterfrom
feat/observability
Apr 3, 2026
Merged

feat(observability): implement end-to-end distributed tracing and unified file logging#9
rust17 merged 3 commits intomasterfrom
feat/observability

Conversation

@rust17
Copy link
Copy Markdown
Owner

@rust17 rust17 commented Apr 3, 2026

Overview

This PR introduces a comprehensive observability layer across the application stack (Frontend, Rust Bridge, and Go Backend).

Key Changes

  • Frontend: Injects traceId into all IPC calls and enables detailed payload logging via tauri-plugin-log.
  • Rust Bridge:
    • Forwards traceId to the Go backend via gRPC metadata.
    • Implements unified logging to ./logs/vstable.log with a 50MB rotation policy.
    • Intercepts Go sidecar stdout/stderr to consolidate all logs.
  • Backend (Go): Extracts x-trace-id in gRPC UnaryInterceptors and logs full request/response cycles.
  • Refactor: Replaced manual JSON parsing with strong serde types for improved safety and error reporting.

Verification

  • Verified log rotation in ./logs/.
  • Confirmed traceId propagation across the bridge.

rust17 added 3 commits April 3, 2026 18:32
- Add , , and  with camelCase mapping
- Implement  traits for conversion to internal gRPC structs
- Update Tauri commands to handle structured deserialization and validation
- Fix silent parameter loss by providing explicit error messages on invalid formats
…fied file logging

- Frontend: Inject 'traceId' to all IPC calls and log full payloads via tauri-plugin-log.
- Bridge (Rust): Forward 'traceId' to Go via gRPC metadata and use tauri-plugin-log to save all logs to './logs/vstable.log' with 50MB rotation strategy.
- Bridge (Rust): Intercept Go sidecar stdout/stderr and inject into the unified log file.
- Backend (Go): Extract 'x-trace-id' in UnaryInterceptor and log full RPC requests/responses to stdout.
@rust17 rust17 merged commit 8cd0ad5 into master Apr 3, 2026
4 checks passed
@rust17 rust17 deleted the feat/observability branch April 3, 2026 15:02
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