Skip to content

Rename: PreTransactionLogData -> NonHttpSmLogData#13154

Open
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:non-http-sm-log-data
Open

Rename: PreTransactionLogData -> NonHttpSmLogData#13154
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:non-http-sm-log-data

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented May 11, 2026

The alternate-HttpSM access log entries have more opportunities for use
than just pre-HttpSM state machine uses. There may be uses for it, for
instance, to log TLS handshake issues, for instance. Thus the old
pre-transaction terminology was too narrow.

This renames the exceptional carrier to NonHttpSmLogData, documents
that normal transaction logs should still use HttpSM-backed data, and
updates the protocol logging path and tests to use the new terminology.

@bneradt bneradt added this to the 11.0.0 milestone May 11, 2026
@bneradt bneradt self-assigned this May 11, 2026
@bneradt bneradt force-pushed the non-http-sm-log-data branch from 363126d to 0a3c2f7 Compare May 11, 2026 16:06
@bneradt bneradt changed the title Clarify non-HttpSM log data Rename: PreTransactionLogData -> NonHttpSmLogData May 11, 2026
@bneradt bneradt requested a review from Copilot May 11, 2026 16:07
The alternate-HttpSM access log entries have more opportunities for use
than just pre-HttpSM state machine uses. There may be uses for it, for
instance, to log TLS handshake issues, for instance. Thus the old
pre-transaction terminology was too narrow.

This renames the exceptional carrier to NonHttpSmLogData, documents
that normal transaction logs should still use HttpSM-backed data, and
updates the protocol logging path and tests to use the new terminology.
@bneradt bneradt force-pushed the non-http-sm-log-data branch from 0a3c2f7 to 50c4b78 Compare May 11, 2026 16:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Renames the “pre-transaction” access-log data carrier to broader “non-HttpSM” terminology, reflecting that these log entries can be emitted for exceptional cases not backed by an HttpSM.

Changes:

  • Renamed PreTransactionLogData to NonHttpSmLogData and updated TransactionLogData to consume it.
  • Updated protocol-layer logging call sites (HTTP/2, HTTP/3) and ProxyTransaction API to use the new name.
  • Updated unit tests and inline documentation to reflect the new terminology.

Reviewed changes

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

Show a summary per file
File Description
src/proxy/logging/unit-tests/test_LogAccess.cc Updates tests/helpers to use NonHttpSmLogData.
src/proxy/logging/TransactionLogData.cc Switches fallback storage from PreTransactionLogData to NonHttpSmLogData.
src/proxy/http3/Http3HeaderVIOAdaptor.cc Updates HTTP/3 malformed-header logging to new API name.
src/proxy/http2/Http2ConnectionState.cc Updates HTTP/2 malformed-header logging to new API name.
src/proxy/ProxyTransaction.cc Renames logging method and uses NonHttpSmLogData as the carrier.
include/proxy/logging/TransactionLogData.h Renames ctor arg + member pointer and updates doc text.
include/proxy/logging/LogAccess.h Updates doc wording to match new “non-HttpSM” terminology.
include/proxy/logging/Log.h Minor doc wording adjustment.
include/proxy/ProxyTransaction.h Renames public API and updates associated documentation.
include/proxy/PreTransactionLogData.h Changes class/documentation to NonHttpSmLogData (but file path suggests it may not be fully renamed).


#include "proxy/logging/TransactionLogData.h"
#include "proxy/PreTransactionLogData.h"
#include "proxy/NonHttpSmLogData.h"
*/
void log_pre_transaction_access(HTTPHdr const *request, const char *protocol_str);
void log_non_http_sm_access(HTTPHdr const *request, const char *protocol_str);

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