Skip to content

Momentum#1472 document the %OC custom_logger macro - #865

Merged
balupillai merged 1 commit into
mainfrom
momentum-1472-oc-macro-docs
Aug 6, 2026
Merged

Momentum#1472 document the %OC custom_logger macro#865
balupillai merged 1 commit into
mainfrom
momentum-1472-oc-macro-docs

Conversation

@balupillai

@balupillai balupillai commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds the new %OC macro to the custom_logger module docs: the outbound connection ID, i.e. the value ec_logger writes in the mainlog connection field on delivery, transient-failure and permanent-failure records. Notes that each delivery attempt uses a new connection (retries log different values) and that it expands empty on receptions.
  • Clarifies %CI as the inbound connection ID, with a cross-reference to %OC.
  • Disambiguates the four "Connection ID" rows in the mainlog format reference: inbound on reception records, outbound on D/T/P records.

Why

%OC is added in SparkPost/Momentum#1472 so custom log formats can reproduce the mainlog's connection field on delivery-side events without redefining %CI, which on-premise customers already consume as the inbound connection ID.

Note for review: %OC first ships in 5.3.0 — if these momentum/4 pages need a version annotation or a different home per the docs versioning convention, happy to adjust.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only updates to Momentum 4 logging reference pages; no runtime or configuration behavior changes in this repo.

Overview
Documents the new %OC custom_logger format macro (outbound connection ID) and clarifies how connection ID fields in the mainlog differ between inbound and outbound events.

In custom-logger.md, %CI is now described explicitly as the inbound connection ID (mainlog reception records), with a pointer to %OC for delivery-side connection IDs. %OC is added to the format specifier list: outbound connection used for a delivery attempt, matching mainlog D/T/P records, empty on receptions, and a new value per retry.

In log-formats-mainlog.md, offset-3 Connection ID descriptions are updated for reception (inbound), delivery, transient failure, and permanent failure (outbound, new connection per attempt).

Reviewed by Cursor Bugbot for commit f0a4458. Bugbot is set up for automated code reviews on this repo. Configure here.

…he mainlog connection-ID fields

custom_logger gains %OC (outbound connection ID) so custom formats can match
what ec_logger writes in the mainlog connection field on D/T/P records
without changing what %CI has always meant. Clarify %CI as the inbound
connection ID, and spell out inbound vs outbound for the four mainlog
connection-ID rows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for support-docs ready!

Name Link
🔨 Latest commit f0a4458
🔍 Latest deploy log https://app.netlify.com/projects/support-docs/deploys/6a749ce800cd2a0008d9ab06
😎 Deploy Preview https://deploy-preview-865--support-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@balupillai
balupillai merged commit 2cb4102 into main Aug 6, 2026
6 of 8 checks passed
@balupillai
balupillai deleted the momentum-1472-oc-macro-docs branch August 6, 2026 16:10
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