Skip to content

chore: add structured logging with secret redaction#61

Merged
mogita merged 2 commits into
masterfrom
feat/cha-2957-logging
Jul 22, 2026
Merged

chore: add structured logging with secret redaction#61
mogita merged 2 commits into
masterfrom
feat/cha-2957-logging

Conversation

@mogita

@mogita mogita commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Ticket

https://linear.app/stream/issue/CHA-2957/logging

Summary

Adds structured logging via the existing StreamOptions.Logger (ILogger): client.initialized, http.request.sent, http.response.received, http.request.failed. Mandatory redaction of secret query params and known-secret body keys. Opt-in LogBodies with a one-shot WARN. PascalCase message-template placeholders map to the canonical field names (mapping documented in the README).

Tests

Non-integration suite green (370); tests/LoggingTests.cs covers events, redaction, and the message scrub.

@mogita mogita changed the title feat: add structured logging with secret redaction chore: add structured logging with secret redaction Jul 22, 2026
@mogita

mogita commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

Titled chore: (not feat:) intentionally: this repo's Release workflow derives the version bump from the PR-title type and skips releasing when the type is not feat/fix, so merging this will not auto-publish. The change is a feature; when you want to publish, run the Release workflow manually (workflow_dispatch, version bump = minor).

@mogita
mogita merged commit a09a9a1 into master Jul 22, 2026
4 checks passed
@mogita
mogita deleted the feat/cha-2957-logging branch July 22, 2026 17:18
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