bryancall commented on issue #10547: URL: https://github.com/apache/trafficserver/issues/10547#issuecomment-4828154510
Thanks for the request. The capability to log simple/quick parent retries already exists as the `ssrc` log field (server_simple_retry_count), with `surc` (server_unavailable_retry_count) as its companion for unavailable-server retries. You can add `%<ssrc>` and `%<surc>` to a custom format in logging.yaml. `ssrc` reports the per-transaction simple server retry count. It is backed by `t_state.current.simple_retry_attempts`, which is incremented on every simple parent retry in HttpTransact (PARENT_RETRY with retry type SIMPLE), with no special-casing that would exclude the last (MID) parent layer. So simple retries triggered by `parent_retry simply_retry` with your `simple_server_retry_responses` set should be reflected in `ssrc`. These fields are documented here: https://github.com/apache/trafficserver/blob/a2c55e3dbe918b229981074c6c81a92b5534c88f/doc/admin-guide/logging/formatting.en.rst#L218-L219 They were added in https://github.com/apache/trafficserver/pull/9694 and first shipped in 10.0.0. Since the requested logging is available and there has been no further activity, I am closing this. If `ssrc` does not capture the MID-layer retries in your specific configuration, please reopen with the version you are running, your parent.config and logging.yaml, and a sample log line so we can dig into the exact case. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
