Skip to content

Cranker: Logging Improvements for Loki - #67

Merged
aoikurokawa merged 2 commits into
masterfrom
ak/log
Jul 24, 2026
Merged

Cranker: Logging Improvements for Loki#67
aoikurokawa merged 2 commits into
masterfrom
ak/log

Conversation

@aoikurokawa

Copy link
Copy Markdown

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the cranker’s observability for Loki by switching to JSON-formatted tracing output, standardizing log messages/keys, and avoiding leaking sensitive RPC URL components into logs.

Changes:

  • Switched tracing subscriber output from pretty to JSON and adjusted startup/config logs (including RPC URL redaction).
  • Refined runtime logging in the cranker loop and receipt processing for more consistent, query-friendly messages.
  • Enabled tracing-subscriber’s json feature (with corresponding lockfile updates) and added unit tests for URL redaction.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
cranker/src/main.rs Initializes JSON tracing, logs config in key-value style, and adds redact_url + tests to reduce secret leakage.
cranker/src/lib.rs Streamlines/standardizes operational logs in the main loop and receipt processing.
cranker/Cargo.toml Enables tracing-subscriber JSON support.
Cargo.lock Pulls in transitive deps needed for JSON tracing output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cranker/src/main.rs
Comment thread cranker/src/lib.rs
@aoikurokawa
aoikurokawa merged commit dbd8ce4 into master Jul 24, 2026
4 checks passed
@aoikurokawa
aoikurokawa deleted the ak/log branch July 24, 2026 18:52
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.

3 participants