Skip to content

Commit 9fcb9a0

Browse files
authored
docs: address typos and use proper note annotations in gRPC access logs (#39093)
This PR addresses some typos and switch to proper note annotations in gRPC Access Logs docs. Signed-off-by: Rohit Agrawal <[email protected]>
1 parent 664c291 commit 9fcb9a0

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

api/envoy/data/accesslog/v3/accesslog.proto

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,16 @@ message AccessLogCommon {
109109
double sample_rate = 1 [(validate.rules).double = {lte: 1.0 gt: 0.0}];
110110

111111
// This field is the remote/origin address on which the request from the user was received.
112-
// Note: This may not be the physical peer. E.g, if the remote address is inferred from for
113-
// example the x-forwarder-for header, proxy protocol, etc.
112+
//
113+
// .. note::
114+
// This may not be the actual peer address. For example, it might be derived from headers like ``x-forwarded-for``,
115+
// the proxy protocol, or similar sources.
114116
config.core.v3.Address downstream_remote_address = 2;
115117

116118
// This field is the local/destination address on which the request from the user was received.
117119
config.core.v3.Address downstream_local_address = 3;
118120

119-
// If the connection is secure,S this field will contain TLS properties.
121+
// If the connection is secure, this field will contain TLS properties.
120122
TLSProperties tls_properties = 4;
121123

122124
// The time that Envoy started servicing this request. This is effectively the time that the first
@@ -128,7 +130,7 @@ message AccessLogCommon {
128130
google.protobuf.Duration time_to_last_rx_byte = 6;
129131

130132
// Interval between the first downstream byte received and the first upstream byte sent. There may
131-
// by considerable delta between ``time_to_last_rx_byte`` and this value due to filters.
133+
// be considerable delta between ``time_to_last_rx_byte`` and this value due to filters.
132134
// Additionally, the same caveats apply as documented in ``time_to_last_downstream_tx_byte`` about
133135
// not accounting for kernel socket buffer time, etc.
134136
google.protobuf.Duration time_to_first_upstream_tx_byte = 7;
@@ -187,7 +189,7 @@ message AccessLogCommon {
187189
// If upstream connection failed due to transport socket (e.g. TLS handshake), provides the
188190
// failure reason from the transport socket. The format of this field depends on the configured
189191
// upstream transport socket. Common TLS failures are in
190-
// :ref:`TLS trouble shooting <arch_overview_ssl_trouble_shooting>`.
192+
// :ref:`TLS troubleshooting <arch_overview_ssl_trouble_shooting>`.
191193
string upstream_transport_failure_reason = 18;
192194

193195
// The name of the route
@@ -204,7 +206,7 @@ message AccessLogCommon {
204206
map<string, google.protobuf.Any> filter_state_objects = 21;
205207

206208
// A list of custom tags, which annotate logs with additional information.
207-
// To configure this value, users should configure
209+
// To configure this value, see the documentation for
208210
// :ref:`custom_tags <envoy_v3_api_field_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.custom_tags>`.
209211
map<string, string> custom_tags = 22;
210212

@@ -225,40 +227,41 @@ message AccessLogCommon {
225227
// This could be any format string that could be used to identify one stream.
226228
string stream_id = 26;
227229

228-
// If this log entry is final log entry that flushed after the stream completed or
229-
// intermediate log entry that flushed periodically during the stream.
230-
// There may be multiple intermediate log entries and only one final log entry for each
231-
// long-live stream (TCP connection, long-live HTTP2 stream).
232-
// And if it is necessary, unique ID or identifier can be added to the log entry
233-
// :ref:`stream_id <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.stream_id>` to
234-
// correlate all these intermediate log entries and final log entry.
230+
// Indicates whether this log entry is the final entry (flushed after the stream completed) or an intermediate entry
231+
// (flushed periodically during the stream).
232+
//
233+
// For long-lived streams (e.g., TCP connections or long-lived HTTP/2 streams), there may be multiple intermediate
234+
// entries and only one final entry.
235+
//
236+
// If needed, a unique identifier (see :ref:`stream_id <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.stream_id>`)
237+
// can be used to correlate all intermediate and final log entries for the same stream.
235238
//
236239
// .. attention::
237240
//
238-
// This field is deprecated in favor of ``access_log_type`` for better indication of the
239-
// type of the access log record.
241+
// This field is deprecated in favor of ``access_log_type``, which provides a clearer indication of the log entry
242+
// type.
240243
bool intermediate_log_entry = 27
241244
[deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
242245

243246
// If downstream connection in listener failed due to transport socket (e.g. TLS handshake), provides the
244247
// failure reason from the transport socket. The format of this field depends on the configured downstream
245-
// transport socket. Common TLS failures are in :ref:`TLS trouble shooting <arch_overview_ssl_trouble_shooting>`.
248+
// transport socket. Common TLS failures are in :ref:`TLS troubleshooting <arch_overview_ssl_trouble_shooting>`.
246249
string downstream_transport_failure_reason = 28;
247250

248251
// For HTTP: Total number of bytes sent to the downstream by the http stream.
249-
// For TCP: Total number of bytes sent to the downstream by the tcp proxy.
252+
// For TCP: Total number of bytes sent to the downstream by the :ref:`TCP Proxy <config_network_filters_tcp_proxy>`.
250253
uint64 downstream_wire_bytes_sent = 29;
251254

252255
// For HTTP: Total number of bytes received from the downstream by the http stream. Envoy over counts sizes of received HTTP/1.1 pipelined requests by adding up bytes of requests in the pipeline to the one currently being processed.
253-
// For TCP: Total number of bytes received from the downstream by the tcp proxy.
256+
// For TCP: Total number of bytes received from the downstream by the :ref:`TCP Proxy <config_network_filters_tcp_proxy>`.
254257
uint64 downstream_wire_bytes_received = 30;
255258

256259
// For HTTP: Total number of bytes sent to the upstream by the http stream. This value accumulates during upstream retries.
257-
// For TCP: Total number of bytes sent to the upstream by the tcp proxy.
260+
// For TCP: Total number of bytes sent to the upstream by the :ref:`TCP Proxy <config_network_filters_tcp_proxy>`.
258261
uint64 upstream_wire_bytes_sent = 31;
259262

260263
// For HTTP: Total number of bytes received from the upstream by the http stream.
261-
// For TCP: Total number of bytes sent to the upstream by the tcp proxy.
264+
// For TCP: Total number of bytes sent to the upstream by the :ref:`TCP Proxy <config_network_filters_tcp_proxy>`.
262265
uint64 upstream_wire_bytes_received = 32;
263266

264267
// The type of the access log, which indicates when the log was recorded.
@@ -297,7 +300,7 @@ message ResponseFlags {
297300
// Indicates there was no healthy upstream.
298301
bool no_healthy_upstream = 2;
299302

300-
// Indicates an there was an upstream request timeout.
303+
// Indicates there was an upstream request timeout.
301304
bool upstream_request_timeout = 3;
302305

303306
// Indicates local codec level reset was sent on the stream.
@@ -358,7 +361,7 @@ message ResponseFlags {
358361
// Indicates that a filter configuration is not available.
359362
bool no_filter_config_found = 22;
360363

361-
// Indicates that request or connection exceeded the downstream connection duration.
364+
// Indicates that the request or connection exceeded the downstream connection duration.
362365
bool duration_timeout = 23;
363366

364367
// Indicates there was an HTTP protocol error in the upstream response.
@@ -480,7 +483,7 @@ message HTTPRequestProperties {
480483
// do not already have a request ID.
481484
string request_id = 9;
482485

483-
// Value of the ``X-Envoy-Original-Path`` request header.
486+
// Value of the ``x-envoy-original-path`` request header.
484487
string original_path = 10;
485488

486489
// Size of the HTTP request headers in bytes.

0 commit comments

Comments
 (0)